mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Make alternatives module python 5 compatible
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user