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:
commit
6dfad7d157
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue