Fixed splitting output too much in layman.list_local

This commit is contained in:
shadowfax-chc 2012-12-29 14:48:21 -05:00
parent 9eee17b495
commit 7f388464b8

View File

@ -65,5 +65,5 @@ def list_local():
'''
cmd = 'layman --quietness=1 --list-local --nocolor'
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