From 64171f5524372c316564b7625d528ae42906ec78 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Sat, 27 Oct 2018 12:28:10 +0530 Subject: [PATCH] Ignore empty result of rabbitmqctl list_parameters (#47021) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/messaging/rabbitmq_parameter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/messaging/rabbitmq_parameter.py b/lib/ansible/modules/messaging/rabbitmq_parameter.py index 9ac93d7a4d..da3a12c572 100644 --- a/lib/ansible/modules/messaging/rabbitmq_parameter.py +++ b/lib/ansible/modules/messaging/rabbitmq_parameter.py @@ -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')