diff options
author | Brian Coca <bcoca@ansible.com> | 2016-01-25 23:47:27 -0500 |
---|---|---|
committer | Brian Coca <bcoca@ansible.com> | 2016-01-25 23:47:27 -0500 |
commit | 6dfad7d157d85a5cd131961f2e4dd54433c8c598 (patch) | |
tree | 9065b45104234383e9c97f8ba71ec6ace16dd011 /messaging | |
parent | 7286ff5024ad80b8e8d5a6af4537de95ea072030 (diff) | |
parent | ae7f7c2c6423d2cf6afaca1d76eae003673527d6 (diff) | |
download | ansible-modules-extras-6dfad7d157d85a5cd131961f2e4dd54433c8c598.tar.gz |
Merge pull request #923 from mliudev/fix-rabbitmq_user-list_users
Check that the current output from 'list_users' command contains a '\t'.
Diffstat (limited to 'messaging')
-rw-r--r-- | messaging/rabbitmq_user.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/messaging/rabbitmq_user.py b/messaging/rabbitmq_user.py index b12178e0..c6ff6a41 100644 --- a/messaging/rabbitmq_user.py +++ b/messaging/rabbitmq_user.py @@ -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: |