The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4798

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Closes #4797

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From cdd374b897db21961d560ac1e402a110f33e71c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@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 <stgra...@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
 }
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to