Fix zfs property parsing

Current property parser breaks when values contain spaces. Since
zfs get -H returns tab separated lines,  it is better to explicitly
split on tabs than on whitespace.
pull/3549/head
Antti Rasinen 13 years ago
parent fa9635478b
commit 7670572578

@ -318,7 +318,7 @@ class Zfs(object):
rc, out, err = self.module.run_command(' '.join(cmd)) rc, out, err = self.module.run_command(' '.join(cmd))
properties = dict() properties = dict()
for l in out.splitlines(): for l in out.splitlines():
p, v = l.split()[1:3] p, v = l.split('\t')[1:3]
properties[p] = v properties[p] = v
return properties return properties

Loading…
Cancel
Save