completer: on hostid autocompletion use type=Routing

This fixes the issue that hostid autocompletion only shows Routing
resources (hypervisor hosts) except for the provisionCertificate API.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
diff --git a/cli/completer.go b/cli/completer.go
index da3311c..ce2b7e2 100644
--- a/cli/completer.go
+++ b/cli/completer.go
@@ -360,6 +360,10 @@
 				autocompleteAPIArgs = append(autocompleteAPIArgs, "templatefilter=executable")
 			}
 
+			if apiFound.Name != "provisionCertificate" && autocompleteAPI.Name == "listHosts" {
+				autocompleteAPIArgs = append(autocompleteAPIArgs, "type=Routing")
+			}
+
 			spinner := t.Config.StartSpinner("fetching options, please wait...")
 			request := cmd.NewRequest(nil, completer.Config, nil)
 			response, _ := cmd.NewAPIRequest(request, autocompleteAPI.Name, autocompleteAPIArgs, false)