1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Ignore empty result of rabbitmqctl list_user_permissions (#35598)

Fix #34863
This commit is contained in:
cadl42 2018-10-02 17:38:50 +08:00 committed by Abhijeet Kasurde
parent b2dc7075df
commit a7221dd289

View file

@ -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: