mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
Convert the whole files/ directory to py3 syntax (#3685)
This commit is contained in:
parent
0027158b74
commit
f7b29ba8fd
7 changed files with 36 additions and 18 deletions
|
@ -124,7 +124,8 @@ def _run_xattr(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="%s!" % e.strerror)
|
||||
|
||||
#result = {'raw': out}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue