Skip to content

Commit

Permalink
Fix quoting bug in zfs. (#4726)
Browse files Browse the repository at this point in the history
(cherry picked from commit 01b32fe)
  • Loading branch information
felixfontein authored and patchback[bot] committed May 28, 2022
1 parent 15c4e08 commit 05c1dcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/4726-zfs.yml
Original file line number Diff line number Diff line change
@@ -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)."
2 changes: 1 addition & 1 deletion plugins/modules/storage/zfs/zfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def create(self):
elif prop == 'volblocksize':
cmd += ['-b', value]
else:
cmd += ['-o', '%s="%s"' % (prop, value)]
cmd += ['-o', '%s=%s' % (prop, value)]
if origin and action == 'clone':
cmd.append(origin)
cmd.append(self.name)
Expand Down

0 comments on commit 05c1dcc

Please sign in to comment.