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()
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:
component, name, value = param_item.split('\t')