1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
Nils Pascal Illenseer 2014-02-18 11:30:17 +01:00
parent 7e23ed345f
commit 858004984b

View file

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