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

Check that the current output from 'list_users' command contains a '\t'.
reviewable/pr18780/r1
Brian Coca 9 years ago
commit 6dfad7d157

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

Loading…
Cancel
Save