From 8a5b597676f2a5dcf3ae2f1b8dd523c4d0667e0e 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 --- messaging/rabbitmq_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messaging/rabbitmq_user.py b/messaging/rabbitmq_user.py index 6333e42282e..b12178e08ea 100644 --- a/messaging/rabbitmq_user.py +++ b/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(',')