Make alternatives module python 5 compatible

This commit is contained in:
Luca Berruti 2014-05-08 14:41:55 +02:00
parent eb61c3737c
commit eca36953c8

View file

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