Skip to content

Commit

Permalink
Ignore empty result of rabbitmqctl list_parameters (ansible#47021)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet Kasurde <[email protected]>
  • Loading branch information
Akasurde authored and ansibot committed Oct 27, 2018
1 parent a4b9af7 commit 64171f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/messaging/rabbitmq_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _exec(self, args, run_in_check_mode=False):
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')
Expand Down

0 comments on commit 64171f5

Please sign in to comment.