commit | 2f5dd1f53c2ada5e0a4d2990b6cfd3b3a12f8c12 | [log] [tgz] |
---|---|---|
author | Ash Wilson <smashwilson@gmail.com> | Wed Sep 03 14:01:37 2014 -0400 |
committer | Ash Wilson <smashwilson@gmail.com> | Wed Sep 03 14:01:37 2014 -0400 |
tree | ac71b63216009120c9b1555b4fda5c9b2e9e3a6a | |
parent | ed6a1d851f3e39482e45894513186a796be60d55 [diff] [blame] |
List the services available from an endpoint.
diff --git a/openstack/utils/utils.go b/openstack/utils/utils.go index f97f3d1..1d09d9e 100644 --- a/openstack/utils/utils.go +++ b/openstack/utils/utils.go
@@ -60,6 +60,10 @@ // BuildQuery constructs the query section of a URI from a map. func BuildQuery(params map[string]string) string { + if len(params) == 0 { + return "" + } + query := "?" for k, v := range params { query += k + "=" + v + "&"