Fix last commit, make it python3 compatible (and py24)
This commit is contained in:
parent
010839aedc
commit
42b9a206ad
1 changed files with 2 additions and 1 deletions
|
@ -528,7 +528,8 @@ class AnsibleModule(object):
|
||||||
# append to legal_inputs and then possibly check against them
|
# append to legal_inputs and then possibly check against them
|
||||||
try:
|
try:
|
||||||
self.aliases = self._handle_aliases()
|
self.aliases = self._handle_aliases()
|
||||||
except Exception, e:
|
except Exception:
|
||||||
|
e = get_exception()
|
||||||
# use exceptions here cause its not safe to call vail json until no_log is processed
|
# use exceptions here cause its not safe to call vail json until no_log is processed
|
||||||
print('{"failed": true, "msg": "Module alias error: %s"}' % str(e))
|
print('{"failed": true, "msg": "Module alias error: %s"}' % str(e))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in a new issue