From 665745e2bd114b32fb913a60c017382e9f8661f0 Mon Sep 17 00:00:00 2001 From: "Luiz Felipe G. Pereira" Date: Mon, 24 Aug 2015 13:54:44 -0300 Subject: [PATCH] Fixing empty tags check Right now even if you pass in an empty tags list to the module (either with an empty string or null) it will erroneously think the tags list have changed and re-apply the tags on every run --- lib/ansible/modules/extras/messaging/rabbitmq_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/messaging/rabbitmq_user.py b/lib/ansible/modules/extras/messaging/rabbitmq_user.py index 6333e42282e..b12178e08ea 100644 --- a/lib/ansible/modules/extras/messaging/rabbitmq_user.py +++ b/lib/ansible/modules/extras/messaging/rabbitmq_user.py @@ -108,7 +108,7 @@ class RabbitMqUser(object): self.username = username self.password = password self.node = node - if tags is None: + if not tags: self.tags = list() else: self.tags = tags.split(',')