fix parsing the output of parted

This commit is contained in:
Kevin Boulain 2015-04-28 11:01:26 +02:00 committed by rallytime
parent a27b158153
commit 6b64da706c

View file

@ -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: