Make alternatives module python 5 compatible

pull/7343/head
Luca Berruti 11 years ago
parent 713657d684
commit a3d1f06cb2

@ -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)

Loading…
Cancel
Save