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
reviewable/pr18780/r1
Luiz Felipe G. Pereira 9 years ago
parent 6999052880
commit 8a5b597676

@ -108,7 +108,7 @@ class RabbitMqUser(object):
self.username = username self.username = username
self.password = password self.password = password
self.node = node self.node = node
if tags is None: if not tags:
self.tags = list() self.tags = list()
else: else:
self.tags = tags.split(',') self.tags = tags.split(',')

Loading…
Cancel
Save