[lxc-devel] [lxd/master] lxd/internal: Fix backup.Pool.Name check error message

jlutran on Github lxc-bot at linuxcontainers.org
Wed Jun 5 14:11:18 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 378 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190605/9d1522ed/attachment.bin>
-------------- next part --------------
From eb5b5e6f15f841a84544e062c5051f471e10f8e0 Mon Sep 17 00:00:00 2001
From: Julien Lutran <julien.lutran at ovh.net>
Date: Wed, 5 Jun 2019 16:07:30 +0200
Subject: [PATCH] lxd/internal: Fix backup.Pool.Name check error message

---
 lxd/api_internal.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/api_internal.go b/lxd/api_internal.go
index 508801f243..dce044e494 100644
--- a/lxd/api_internal.go
+++ b/lxd/api_internal.go
@@ -497,7 +497,7 @@ func internalImport(d *Daemon, r *http.Request) Response {
 			return BadRequest(fmt.Errorf(`The storage pool "%s" `+
 				`the container was detected on does not match `+
 				`the storage pool "%s" specified in the `+
-				`backup file`, backup.Pool.Name, containerPoolName))
+				`backup file`, containerPoolName, backup.Pool.Name))
 		}
 
 		if backup.Pool.Driver != pool.Driver {


More information about the lxc-devel mailing list