[lxc-devel] [lxd/master] storage/zfs: Fix arguments in function call

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Dec 5 07:10:25 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 355 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181205/8aae4368/attachment.bin>
-------------- next part --------------
From 92e2cd23063f2beded9353fb26e522498ab489d9 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 4 Dec 2018 15:29:43 +0100
Subject: [PATCH] storage/zfs: Fix arguments in function call

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 lxd/storage_zfs.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/storage_zfs.go b/lxd/storage_zfs.go
index 97a8a59a00..fc18db36e3 100644
--- a/lxd/storage_zfs.go
+++ b/lxd/storage_zfs.go
@@ -3371,5 +3371,5 @@ func (s *storageZfs) StoragePoolVolumeSnapshotRename(newName string) error {
 
 	logger.Infof("Renamed ZFS storage volume snapshot on storage pool \"%s\" from \"%s\" to \"%s\"", s.pool.Name, s.volume.Name, newName)
 
-	return s.s.Cluster.StoragePoolVolumeRename(s.volume.Name, "default", fmt.Sprintf("%s/%s", sourceName, newName), storagePoolVolumeTypeCustom, s.poolID)
+	return s.s.Cluster.StoragePoolVolumeRename("default", s.volume.Name, fmt.Sprintf("%s/%s", sourceName, newName), storagePoolVolumeTypeCustom, s.poolID)
 }


More information about the lxc-devel mailing list