Convert the whole files/ directory to py3 syntax (#3685)

This commit is contained in:
Michael Scherer 2016-05-18 16:01:53 +02:00 committed by Matt Clay
commit f7b29ba8fd
7 changed files with 36 additions and 18 deletions

View file

@ -206,7 +206,8 @@ def run_acl(module, cmd, check_rc=True):
try:
(rc, out, err) = module.run_command(' '.join(cmd), check_rc=check_rc)
except Exception, e:
except Exception:
e = get_exception()
module.fail_json(msg=e.strerror)
lines = out.splitlines()