From c9f7d6062d9407dfcb142e94baf9654ea28a171b Mon Sep 17 00:00:00 2001 From: j-keck Date: Sun, 19 Apr 2020 20:34:48 +0200 Subject: [PATCH] fix test --- pkg/zfs/dataset.go | 2 +- pkg/zfs/zfs_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/zfs/dataset.go b/pkg/zfs/dataset.go index 2b1fd33..228a5b6 100644 --- a/pkg/zfs/dataset.go +++ b/pkg/zfs/dataset.go @@ -91,7 +91,7 @@ func (self *Dataset) CloneSnapshot(snapName, fsName string, flags []string) erro snapName = self.Name + "@" + snapName } - log.Debugf("clone snapshot: %s to %s", snapName) + log.Debugf("clone snapshot: %s to %s", snapName, fsName) args := append(flags, snapName, fsName) stdout, stderr, err := self.cmd.Exec("clone", args...) log.Tracef("clone snapshot stdout: %s", stdout) diff --git a/pkg/zfs/zfs_test.go b/pkg/zfs/zfs_test.go index 56a7c38..7169e0b 100644 --- a/pkg/zfs/zfs_test.go +++ b/pkg/zfs/zfs_test.go @@ -10,7 +10,7 @@ tank/sub 1 2 3 testdata/tank/subpool ` zfs := new(ZFS) zfs.cmd = NewZFSCmdMock(out, "", nil) - ds, err := zfs.scanDatasets("tank") + ds, _, err := zfs.scanDatasets("tank") if err != nil { t.Error(err) }