From 463ac01ae0719245092e1bec38cd8b1d52bf1aec 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 ad7bf541f9c7..eb09de910973 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 }