1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #7343 from lberruti/alternatives_python5_2

Make alternatives module python 2.5 compatible
This commit is contained in:
Michael DeHaan 2014-05-09 09:08:34 -04:00
commit 54ac0fe92c

View file

@ -126,7 +126,7 @@ def main():
) )
module.exit_json(changed=True) module.exit_json(changed=True)
except subprocess.CalledProcessError as cpe: except subprocess.CalledProcessError, cpe:
module.fail_json(msg=str(dir(cpe))) module.fail_json(msg=str(dir(cpe)))
else: else:
module.exit_json(changed=False) module.exit_json(changed=False)