sys.exit used, but not imported.
This commit is contained in:
parent
0ed579ddd7
commit
9d5669e6b3
1 changed files with 5 additions and 4 deletions
|
@ -130,12 +130,13 @@ EXAMPLES = '''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
from sys import exit
|
||||||
try:
|
try:
|
||||||
from dnsimple import DNSimple
|
from dnsimple import DNSimple
|
||||||
from dnsimple.dnsimple import DNSimpleException
|
from dnsimple.dnsimple import DNSimpleException
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "failed=True msg='dnsimple required for this module'"
|
print "failed=True msg='dnsimple required for this module'"
|
||||||
sys.exit(1)
|
exit(1)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
|
|
Loading…
Reference in a new issue