From f51d7f4f51e1b0171cfdcafe10ba3f660ee31528 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 31 Jul 2023 11:23:50 +0200 Subject: [PATCH] wrong tag used for zfs managed detection --- version.go | 8 ++++---- zfs.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/version.go b/version.go index c6d9ad9..9925483 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "4a0f110" +var githash = "da53fcf" var branch = "v2" -var buildstamp = "2023-07-31_09:15:54" -var commits = "72" -var version = "4a0f110-b72 - 2023-07-31_09:15:54" +var buildstamp = "2023-07-31_09:23:23" +var commits = "73" +var version = "da53fcf-b73 - 2023-07-31_09:23:23" diff --git a/zfs.go b/zfs.go index 1caa9bc..54cb6e8 100644 --- a/zfs.go +++ b/zfs.go @@ -130,7 +130,7 @@ func (z *BoxZfs) Open() error { log.WithFields(log.Fields{"name": z.box.name, "zfs-fs": rec[0], "zfs-value": rec[1]}).Debugf("zfs get " + zfsManagedPropertyName) if fs, ok := z.filesystems[rec[0]]; ok { - if rec[1] == "true" { + if rec[1] == "+" { fs.managed = true log.WithFields(log.Fields{"name": z.box.name, "zfs-fs": rec[0], "zfs-value": rec[1]}).Infof("managed fs") }