[lxc-devel] [lxd/master] lxc/profile: Fix "get" command
stgraber on Github
lxc-bot at linuxcontainers.org
Mon Jul 16 19:29:37 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180716/2e51863d/attachment.bin>
-------------- next part --------------
From cdd374b897db21961d560ac1e402a110f33e71c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 16 Jul 2018 15:28:38 -0400
Subject: [PATCH] lxc/profile: Fix "get" command
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Closes #4797
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxc/profile.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lxc/profile.go b/lxc/profile.go
index 873eab02f..3328b09ac 100644
--- a/lxc/profile.go
+++ b/lxc/profile.go
@@ -550,7 +550,7 @@ func (c *cmdProfileGet) Run(cmd *cobra.Command, args []string) error {
return err
}
- fmt.Printf("%s\n", profile.Config[args[0]])
+ fmt.Printf("%s\n", profile.Config[args[1]])
return nil
}
More information about the lxc-devel
mailing list