mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fixed splitting output too much in layman.list_local
This commit is contained in:
parent
9eee17b495
commit
7f388464b8
@ -65,5 +65,5 @@ def list_local():
|
|||||||
'''
|
'''
|
||||||
cmd = 'layman --quietness=1 --list-local --nocolor'
|
cmd = 'layman --quietness=1 --list-local --nocolor'
|
||||||
out = __salt__['cmd.run'](cmd).split('\n')
|
out = __salt__['cmd.run'](cmd).split('\n')
|
||||||
ret = [line.split()[1] for line in out.split('\n')]
|
ret = [line.split()[1] for line in out]
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user