Make alternatives module python 5 compatible
This commit is contained in:
parent
eb61c3737c
commit
eca36953c8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue