mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-04-11 22:40:01 +03:00
bug fix, in case of properties without value
This commit is contained in:
parent
1ad93da8cc
commit
15a7528fbc
@ -661,7 +661,13 @@ class ZfsDataset():
|
||||
return({})
|
||||
|
||||
|
||||
return(dict(self.zfs_node.run(tab_split=True, cmd=cmd, readonly=True, valid_exitcodes=[ 0 ])))
|
||||
ret={}
|
||||
|
||||
for pair in self.zfs_node.run(tab_split=True, cmd=cmd, readonly=True, valid_exitcodes=[ 0 ]):
|
||||
if len(pair)==2:
|
||||
ret[pair[0]]=pair[1]
|
||||
|
||||
return(ret)
|
||||
|
||||
|
||||
def is_changed(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user