Ignore empty result of rabbitmqctl list_user_permissions (#35598)

Fix #34863

(cherry picked from commit a7221dd289)
pull/46306/head^2
cadl42 6 years ago committed by Matt Clay
parent 5cc5be07fb
commit eb6a2408db

@ -0,0 +1,2 @@
bugfixes:
- Ignore empty result of rabbitmqctl list_user_permissions.

@ -172,7 +172,7 @@ class RabbitMqUser(object):
return False
def _get_permissions(self):
perms_out = self._exec(['list_user_permissions', self.username], True)
perms_out = [perm for perm in self._exec(['list_user_permissions', self.username], True) if perm.strip()]
perms_list = list()
for perm in perms_out:

Loading…
Cancel
Save