sys.exit used, but not imported.

pull/18777/head
Niall Donegan 10 years ago committed by Matt Clay
parent 0ed579ddd7
commit 9d5669e6b3

@ -130,12 +130,13 @@ EXAMPLES = '''
'''
import os
from sys import exit
try:
from dnsimple import DNSimple
from dnsimple.dnsimple import DNSimpleException
except ImportError:
print "failed=True msg='dnsimple required for this module'"
sys.exit(1)
exit(1)
def main():
module = AnsibleModule(

Loading…
Cancel
Save