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

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) ===
A couple of profile actions had wrong autocompletions.
This commit aims to fix them.
From 1a8964f38fc1ebfc36b4a4495ce27405d792ff60 Mon Sep 17 00:00:00 2001
From: Alejandro Perez <a...@um.es>
Date: Thu, 23 Nov 2017 14:35:39 +0100
Subject: [PATCH] Fix some profile autocompletions

---
 config/bash/lxd-client | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/config/bash/lxd-client b/config/bash/lxd-client
index 087906833..88d55fbae 100644
--- a/config/bash/lxd-client
+++ b/config/bash/lxd-client
@@ -230,6 +230,9 @@ _have lxc && {
               "device")
                 COMPREPLY=( $(compgen -W "list show remove get set unset add" 
-- $cur) )
                 ;;
+              "add"|"assign"|"remove")
+                _lxd_names
+                ;;
               *)
                 _lxd_profiles
                 ;;
@@ -237,7 +240,7 @@ _have lxc && {
             ;;
           4)
             case ${no_dashargs[2]} in
-              "device")
+              "device"|"add"|"assign"|"remove")
                 _lxd_profiles
                 ;;
               *)
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to