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')