Merge pull request #436 from gaqzi/rabbitmq_plugin_ignore_pival_banner
Ignore extra lines from Pivotal's RabbitMQ package
This commit is contained in:
commit
738caf35da
1 changed files with 9 additions and 1 deletions
|
@ -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…
Reference in a new issue