mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-22 18:31:25 -07:00
htpasswd: let changed reflect updated permissions (#9490)
* Let changed reflect updated permissions. * Make pylint happy.
This commit is contained in:
parent
01244237a1
commit
1e28302a66
3 changed files with 41 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue