From 138141b769a74b0256f9170af1a2d032c9549d54 Mon Sep 17 00:00:00 2001 From: Kadin Sayani Date: Wed, 18 Dec 2024 09:45:29 -0700 Subject: [PATCH] lxc/completion: Add completions for `cloud-init.*` keys Fixes https://github.com/canonical/lxd/issues/14689. Signed-off-by: Kadin Sayani --- lxc/completion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxc/completion.go b/lxc/completion.go index d70348c0cea6..b0eeb9e33772 100644 --- a/lxc/completion.go +++ b/lxc/completion.go @@ -274,7 +274,7 @@ func (g *cmdGlobal) cmpInstanceKeys(instanceName string) ([]string, cobra.ShellC configKey = strings.TrimSuffix(configKey, "*") // InstanceTypeAny config keys. - if configKeyField.Condition == "" { + if configKeyField.Condition == "" || configKeyField.Condition == "If supported by image" { configKeys = append(configKeys, configKey) continue }