This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
The following commit(s) were added to refs/heads/main by this push:
new 91f5600 Resolve autocomplete of migrateSystemVm (#159)
91f5600 is described below
commit 91f56001bf06a5da6f3c69964421db20fe2788e0
Author: Vitor Hugo Homem Marzarotto
<[email protected]>
AuthorDate: Thu Mar 27 05:49:10 2025 -0300
Resolve autocomplete of migrateSystemVm (#159)
Co-authored-by: Vitor Hugo H. Marzarotto <[email protected]>
---
cli/completer.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cli/completer.go b/cli/completer.go
index 13712d2..be1ba21 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"
} else if apiFound.Name == "associateIpAddress"
{
autocompleteAPIArgs =
append(autocompleteAPIArgs, "state=Free")