mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
[PR #9490/1e28302a backport][stable-9] htpasswd: let changed reflect updated permissions (#9492)
htpasswd: let changed reflect updated permissions (#9490)
* Let changed reflect updated permissions.
* Make pylint happy.
(cherry picked from commit 1e28302a66
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
ae8015667c
commit
c7773afebf
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