From 540b07b884541d1fed81993c339f36e310de7073 Mon Sep 17 00:00:00 2001 From: rockandska Date: Fri, 22 Feb 2019 09:36:32 +0100 Subject: [PATCH] Fix idempotence in rabbitmq_plugin (#52166) * Fix idempotence in rabbitmq_plugin * Add changelog fragment --- changelogs/fragments/52166-fix_rabbitmq_plugin_idempotence.yml | 3 +++ lib/ansible/modules/messaging/rabbitmq/rabbitmq_plugin.py | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/52166-fix_rabbitmq_plugin_idempotence.yml diff --git a/changelogs/fragments/52166-fix_rabbitmq_plugin_idempotence.yml b/changelogs/fragments/52166-fix_rabbitmq_plugin_idempotence.yml new file mode 100644 index 0000000000..0d0f00b8ad --- /dev/null +++ b/changelogs/fragments/52166-fix_rabbitmq_plugin_idempotence.yml @@ -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) diff --git a/lib/ansible/modules/messaging/rabbitmq/rabbitmq_plugin.py b/lib/ansible/modules/messaging/rabbitmq/rabbitmq_plugin.py index 79437183e0..301bbfe282 100644 --- a/lib/ansible/modules/messaging/rabbitmq/rabbitmq_plugin.py +++ b/lib/ansible/modules/messaging/rabbitmq/rabbitmq_plugin.py @@ -154,6 +154,8 @@ def main(): if state == 'enabled': if not new_only: for plugin in enabled_plugins: + if " " in plugin: + continue if plugin not in names: rabbitmq_plugins.disable(plugin) disabled.append(plugin)