mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-27 17:06:42 +00:00
htpasswd: let changed reflect updated permissions (#9490)
* Let changed reflect updated permissions. * Make pylint happy.
This commit is contained in:
@@ -243,8 +243,9 @@ def main():
|
||||
(msg, changed) = absent(path, username, check_mode)
|
||||
else:
|
||||
module.fail_json(msg="Invalid state: %s" % state)
|
||||
return # needed to make pylint happy
|
||||
|
||||
check_file_attrs(module, changed, msg)
|
||||
(msg, changed) = check_file_attrs(module, changed, msg)
|
||||
module.exit_json(msg=msg, changed=changed)
|
||||
except Exception as e:
|
||||
module.fail_json(msg=to_native(e))
|
||||
|
||||
Reference in New Issue
Block a user