Skip to content

Commit c9f7d60

Browse files
committed
fix test
1 parent 11c4653 commit c9f7d60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/zfs/dataset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (self *Dataset) CloneSnapshot(snapName, fsName string, flags []string) erro
9191
snapName = self.Name + "@" + snapName
9292
}
9393

94-
log.Debugf("clone snapshot: %s to %s", snapName)
94+
log.Debugf("clone snapshot: %s to %s", snapName, fsName)
9595
args := append(flags, snapName, fsName)
9696
stdout, stderr, err := self.cmd.Exec("clone", args...)
9797
log.Tracef("clone snapshot stdout: %s", stdout)

pkg/zfs/zfs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tank/sub 1 2 3 testdata/tank/subpool
1010
`
1111
zfs := new(ZFS)
1212
zfs.cmd = NewZFSCmdMock(out, "", nil)
13-
ds, err := zfs.scanDatasets("tank")
13+
ds, _, err := zfs.scanDatasets("tank")
1414
if err != nil {
1515
t.Error(err)
1616
}

0 commit comments

Comments
 (0)