IDs are actually integers apparently
diff --git a/openstack/compute/v2/extensions/secgroups/urls.go b/openstack/compute/v2/extensions/secgroups/urls.go
index f4760b6..2363d20 100644
--- a/openstack/compute/v2/extensions/secgroups/urls.go
+++ b/openstack/compute/v2/extensions/secgroups/urls.go
@@ -1,14 +1,18 @@
package secgroups
-import "github.com/rackspace/gophercloud"
+import (
+ "strconv"
+
+ "github.com/rackspace/gophercloud"
+)
const (
secgrouppath = "os-security-groups"
rulepath = "os-security-group-rules"
)
-func resourceURL(c *gophercloud.ServiceClient, id string) string {
- return c.ServiceURL(secgrouppath, id)
+func resourceURL(c *gophercloud.ServiceClient, id int) string {
+ return c.ServiceURL(secgrouppath, strconv.Itoa(id))
}
func rootURL(c *gophercloud.ServiceClient) string {
@@ -23,8 +27,8 @@
return c.ServiceURL(rulepath)
}
-func resourceRuleURL(c *gophercloud.ServiceClient, id string) string {
- return c.ServiceURL(rulepath, id)
+func resourceRuleURL(c *gophercloud.ServiceClient, id int) string {
+ return c.ServiceURL(rulepath, strconv.Itoa(id))
}
func serverActionURL(c *gophercloud.ServiceClient, id string) string {