[lxc-devel] [lxd/master] lxd/containers: Fix bad error

stgraber on Github lxc-bot at linuxcontainers.org
Thu May 23 18:02:47 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190523/790281e8/attachment.bin>
-------------- next part --------------
From 755d602256a6a4c2634c4624d9adb091930f299c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 23 May 2019 14:02:15 -0400
Subject: [PATCH] lxd/containers: Fix bad error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/container_lxc.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index f46fc24887..cddd69ad51 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -4179,7 +4179,7 @@ func (c *containerLXC) Update(args db.ContainerArgs, userRequested bool) error {
 	// Validate the new profiles
 	profiles, err := c.state.Cluster.Profiles(args.Project)
 	if err != nil {
-		return errors.Wrap(err, "Failed to get project profiles")
+		return errors.Wrap(err, "Failed to get profiles")
 	}
 
 	checkedProfiles := []string{}


More information about the lxc-devel mailing list