Skip to content

Commit

Permalink
user module: set check_mode support to False
Browse files Browse the repository at this point in the history
Currently, check_mode is not supported on the user module and as such, a
user is actually modified when run with the `--check` option.

This an initial temporary fix in order to avoid issues on existing
systems.

See ansible-collections#107
  • Loading branch information
csmart committed Jul 7, 2022
1 parent 74f479f commit 443d379
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/107-user_disable_check_support.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- user module - set supports_check_mode flag to False, as the module does not actually support check mode.
2 changes: 1 addition & 1 deletion plugins/modules/rabbitmq_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def main():
)
module = AnsibleModule(
argument_spec=arg_spec,
supports_check_mode=True
supports_check_mode=False
)

username = module.params['user']
Expand Down

0 comments on commit 443d379

Please sign in to comment.