Fix zfs create command for properties with spaces

If a property value contains one or more spaces, the zfs command will fail.
With value quoted this behavior is fixed.
reviewable/pr18780/r1
Nils Pascal Illenseer 11 years ago
parent a6d92bf4b7
commit 7f40790fc1

@ -264,7 +264,7 @@ class Zfs(object):
cmd.append('-b %s' % volblocksize)
if properties:
for prop, value in properties.iteritems():
cmd.append('-o %s=%s' % (prop, value))
cmd.append('-o %s="%s"' % (prop, value))
if volsize:
cmd.append('-V')
cmd.append(volsize)

Loading…
Cancel
Save