1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix idempotence in rabbitmq_plugin (#52166)

* Fix idempotence in rabbitmq_plugin

* Add changelog fragment
This commit is contained in:
rockandska 2019-02-22 09:36:32 +01:00 committed by John R Barker
parent d3fcdae4ad
commit 540b07b884
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,3 @@
bugfixes:
- Fix rabbitmq_plugin idempotence due to information message in new version of rabbitmq
(https://github.com/ansible/ansible/pull/52166)

View file

@ -154,6 +154,8 @@ def main():
if state == 'enabled': if state == 'enabled':
if not new_only: if not new_only:
for plugin in enabled_plugins: for plugin in enabled_plugins:
if " " in plugin:
continue
if plugin not in names: if plugin not in names:
rabbitmq_plugins.disable(plugin) rabbitmq_plugins.disable(plugin)
disabled.append(plugin) disabled.append(plugin)