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

Fix quoting bug in zfs. (#4726) (#4744)

(cherry picked from commit 01b32fec14)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2022-05-29 07:59:03 +02:00 committed by GitHub
parent 15c4e08295
commit 6252f3bded
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- "zfs - fix wrong quoting of properties (https://github.com/ansible-collections/community.general/issues/4707, https://github.com/ansible-collections/community.general/pull/4726)."

View file

@ -160,7 +160,7 @@ class Zfs(object):
elif prop == 'volblocksize': elif prop == 'volblocksize':
cmd += ['-b', value] cmd += ['-b', value]
else: else:
cmd += ['-o', '%s="%s"' % (prop, value)] cmd += ['-o', '%s=%s' % (prop, value)]
if origin and action == 'clone': if origin and action == 'clone':
cmd.append(origin) cmd.append(origin)
cmd.append(self.name) cmd.append(self.name)