From ef15bcbdea8519c87f41c9b1dfa835ee5b83a9be Mon Sep 17 00:00:00 2001 From: "Vitor Hugo H. Marzarotto" Date: Thu, 6 Mar 2025 14:59:48 -0300 Subject: [PATCH] Resolve autocomplete of migrateSystemVm --- cli/completer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/completer.go b/cli/completer.go index af8cab05..6f13c0c3 100644 --- a/cli/completer.go +++ b/cli/completer.go @@ -389,7 +389,7 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int) if apiFound.Name != "provisionCertificate" && autocompleteAPI.Name == "listHosts" { autocompleteAPIArgs = append(autocompleteAPIArgs, "type=Routing") - } else if apiFound.Name == "migrateSystemVm" { + } else if apiFound.Name == "migrateSystemVm" && autocompleteAPI.Name == "listVirtualMachines" { autocompleteAPI.Name = "listSystemVms" }