mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix parsing the output of parted
This commit is contained in:
parent
a27b158153
commit
6b64da706c
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ def list_(device, unit=None):
|
|||
else:
|
||||
cmd = 'parted -m -s {0} print'.format(device)
|
||||
|
||||
out = __salt__['cmd.run'](cmd).splitlines()
|
||||
out = __salt__['cmd.run_stdout'](cmd).splitlines()
|
||||
ret = {'info': {}, 'partitions': {}}
|
||||
mode = 'info'
|
||||
for line in out:
|
||||
|
|
Loading…
Add table
Reference in a new issue