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 38cef54 List free IPs when performing associate IPAddress operation
(#155)
38cef54 is described below
commit 38cef540b981226269b169524f6c746752a9663b
Author: Pearl Dsilva <[email protected]>
AuthorDate: Tue Mar 18 23:40:09 2025 -0400
List free IPs when performing associate IPAddress operation (#155)
* List free IPs when performing associate IPAddress operation
* remove unnecessary code
---
cli/completer.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cli/completer.go b/cli/completer.go
index af8cab0..13712d2 100644
--- a/cli/completer.go
+++ b/cli/completer.go
@@ -391,6 +391,8 @@ func (t *autoCompleter) Do(line []rune, pos int) (options
[][]rune, offset int)
autocompleteAPIArgs =
append(autocompleteAPIArgs, "type=Routing")
} else if apiFound.Name == "migrateSystemVm" {
autocompleteAPI.Name = "listSystemVms"
+ } else if apiFound.Name == "associateIpAddress"
{
+ autocompleteAPIArgs =
append(autocompleteAPIArgs, "state=Free")
}
spinner := t.Config.StartSpinner("fetching
options, please wait...")