mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
salt.module.zpool - fix bug with properties on/off being parsed as true/false
This commit is contained in:
parent
dd64494a19
commit
a5a98845c7
@ -671,6 +671,9 @@ def create(zpool, *vdevs, **kwargs):
|
||||
if properties: # create "-o property=value" pairs
|
||||
optlist = []
|
||||
for prop in properties:
|
||||
if isinstance(properties[prop], bool):
|
||||
value = 'on' if properties[prop] else 'off'
|
||||
else:
|
||||
if ' ' in properties[prop]:
|
||||
value = "'{0}'".format(properties[prop])
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user