sys.exit used, but not imported.

This commit is contained in:
Niall Donegan 2015-04-15 16:15:31 +01:00
parent 4048de9c1e
commit b4ad532248

View file

@ -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(