Port htpasswd to python3 compatible syntax (#3672)
This commit is contained in:
parent
73a33c02a9
commit
31126034b0
1 changed files with 2 additions and 1 deletions
|
@ -251,7 +251,8 @@ def main():
|
||||||
|
|
||||||
check_file_attrs(module, changed, msg)
|
check_file_attrs(module, changed, msg)
|
||||||
module.exit_json(msg=msg, changed=changed)
|
module.exit_json(msg=msg, changed=changed)
|
||||||
except Exception, e:
|
except Exception:
|
||||||
|
e = get_exception()
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=str(e))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue