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_parameters (#47021)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-10-27 12:28:10 +05:30 committed by ansibot
parent a4b9af740a
commit 64171f5524

View file

@ -82,7 +82,7 @@ class RabbitMqParameter(object):
return list() return list()
def get(self): def get(self):
parameters = self._exec(['list_parameters', '-p', self.vhost], True) parameters = [param for param in self._exec(['list_parameters', '-p', self.vhost], True) if param.strip()]
for param_item in parameters: for param_item in parameters:
component, name, value = param_item.split('\t') component, name, value = param_item.split('\t')