Merge pull request #436 from gaqzi/rabbitmq_plugin_ignore_pival_banner

Ignore extra lines from Pivotal's RabbitMQ package
This commit is contained in:
James Cammarata 2015-09-16 14:03:17 -04:00
commit 738caf35da

View file

@ -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']),