mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28669 from rallytime/fix-26592
Use the -q argument to strip extraneous messages from rabbitmq
This commit is contained in:
commit
3249b322e8
1 changed files with 3 additions and 5 deletions
|
@ -128,11 +128,9 @@ def list_vhosts(runas=None):
|
|||
'''
|
||||
if runas is None:
|
||||
runas = salt.utils.get_user()
|
||||
res = __salt__['cmd.run']('rabbitmqctl list_vhosts',
|
||||
runas=runas)
|
||||
|
||||
# remove first and last line: Listing ... - ...done
|
||||
return _strip_listing_to_done(res.splitlines())
|
||||
res = __salt__['cmd.run']('rabbitmqctl list_vhosts -q',
|
||||
runas=runas).splitlines()
|
||||
return res
|
||||
|
||||
|
||||
def user_exists(name, runas=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue