Skip to content

Commit 91f5600

Browse files
vits-hugsVitor Hugo H. Marzarotto
andauthored
Resolve autocomplete of migrateSystemVm (#159)
Co-authored-by: Vitor Hugo H. Marzarotto <[email protected]>
1 parent 38cef54 commit 91f5600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/completer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int)
389389

390390
if apiFound.Name != "provisionCertificate" && autocompleteAPI.Name == "listHosts" {
391391
autocompleteAPIArgs = append(autocompleteAPIArgs, "type=Routing")
392-
} else if apiFound.Name == "migrateSystemVm" {
392+
} else if apiFound.Name == "migrateSystemVm" && autocompleteAPI.Name == "listVirtualMachines" {
393393
autocompleteAPI.Name = "listSystemVms"
394394
} else if apiFound.Name == "associateIpAddress" {
395395
autocompleteAPIArgs = append(autocompleteAPIArgs, "state=Free")

0 commit comments

Comments
 (0)