important bugfix: look at OUR snapshot instead of all snapshots when determining if we need a new snapshot

This commit is contained in:
Edwin Eefting 2020-02-07 19:55:16 +01:00
parent e1e6a87eba
commit 932ff7abe2

View File

@ -791,7 +791,7 @@ class ZfsDataset():
if not self.our_snapshots:
return(True)
latest_snapshot=self.snapshots[-1]
latest_snapshot=self.our_snapshots[-1]
cmd=[ "zfs", "get","-H" ,"-ovalue", "-p", "written@"+str(latest_snapshot), self.name ]
output=self.zfs_node.run(readonly=True, tab_split=False, cmd=cmd, valid_exitcodes=[ 0 ])