From 4d15f29b5b4fc06a00170884ed064f1dae05c5b9 Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Sun, 17 May 2020 21:54:43 +0200 Subject: [PATCH] older zpool command doesnt support -o --- bin/zfs-autobackup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/zfs-autobackup b/bin/zfs-autobackup index 1fba88f..8b2c457 100755 --- a/bin/zfs-autobackup +++ b/bin/zfs-autobackup @@ -500,15 +500,15 @@ class ZfsPool(): self.debug("Getting zpool properties") cmd=[ - "zpool", "get", "-H", "-o", "property,value", "-p", "all", self.name + "zpool", "get", "-H", "-p", "all", self.name ] 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] + if len(pair)==4: + ret[pair[1]]=pair[2] return(ret)