summaryrefslogtreecommitdiff
path: root/messaging
diff options
context:
space:
mode:
authorLuiz Felipe G. Pereira <luiz.felipe.gp@gmail.com>2015-08-24 13:54:44 -0300
committerLuiz Felipe G. Pereira <luiz.felipe.gp@gmail.com>2015-08-24 14:15:11 -0300
commit8a5b597676f2a5dcf3ae2f1b8dd523c4d0667e0e (patch)
treedc7ef821e918feae6f626f71cee9410eb0a1683d /messaging
parent6999052880c27e7bfa171ece8549343faa1e4fa4 (diff)
downloadansible-modules-extras-8a5b597676f2a5dcf3ae2f1b8dd523c4d0667e0e.tar.gz
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
Diffstat (limited to 'messaging')
-rw-r--r--messaging/rabbitmq_user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/messaging/rabbitmq_user.py b/messaging/rabbitmq_user.py
index 6333e422..b12178e0 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(',')