Skip to content

Commit 38cef54

Browse files
authored
List free IPs when performing associate IPAddress operation (#155)
* List free IPs when performing associate IPAddress operation * remove unnecessary code
1 parent dc0266f commit 38cef54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/completer.go

+2
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int)
391391
autocompleteAPIArgs = append(autocompleteAPIArgs, "type=Routing")
392392
} else if apiFound.Name == "migrateSystemVm" {
393393
autocompleteAPI.Name = "listSystemVms"
394+
} else if apiFound.Name == "associateIpAddress" {
395+
autocompleteAPIArgs = append(autocompleteAPIArgs, "state=Free")
394396
}
395397

396398
spinner := t.Config.StartSpinner("fetching options, please wait...")

0 commit comments

Comments
 (0)