Merge pull request #436 from gaqzi/rabbitmq_plugin_ignore_pival_banner

Ignore extra lines from Pivotal's RabbitMQ package
reviewable/pr18780/r1
James Cammarata 9 years ago
commit 738caf35da

@ -88,7 +88,14 @@ class RabbitMqPlugins(object):
return list()
def get_all(self):
return self._exec(['list', '-E', '-m'], True)
list_output = self._exec(['list', '-E', '-m'], True)
plugins = []
for plugin in list_output:
if not plugin:
break
plugins.append(plugin)
return plugins
def enable(self, name):
self._exec(['enable', name])
@ -96,6 +103,7 @@ class RabbitMqPlugins(object):
def disable(self, name):
self._exec(['disable', name])
def main():
arg_spec = dict(
names=dict(required=True, aliases=['name']),

Loading…
Cancel
Save