Merge pull request #923 from mliudev/fix-rabbitmq_user-list_users

Check that the current output from 'list_users' command contains a '\t'.
This commit is contained in:
Brian Coca 2016-01-25 23:47:27 -05:00
commit 6dfad7d157

View file

@ -136,6 +136,9 @@ class RabbitMqUser(object):
users = self._exec(['list_users'], True)
for user_tag in users:
if '\t' not in user_tag:
continue
user, tags = user_tag.split('\t')
if user == self.username: