From b397f4799543710873020ee4dc101e31270a4b13 Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Thu, 5 Sep 2019 20:30:45 +0800 Subject: [PATCH] Fix bandwidth V2 URL --- openstack/networking/v2/bandwidths/urls.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openstack/networking/v2/bandwidths/urls.go b/openstack/networking/v2/bandwidths/urls.go index 2a33e548c..57a51732e 100644 --- a/openstack/networking/v2/bandwidths/urls.go +++ b/openstack/networking/v2/bandwidths/urls.go @@ -3,24 +3,24 @@ package bandwidths import "github.com/huaweicloud/golangsdk" func PostURL(c *golangsdk.ServiceClient) string { - return c.ServiceURL("bandwidths") + return c.ServiceURL(c.ProjectID, "bandwidths") } func BatchPostURL(c *golangsdk.ServiceClient) string { - return c.ServiceURL("batch-bandwidths") + return c.ServiceURL(c.ProjectID, "batch-bandwidths") } func UpdateURL(c *golangsdk.ServiceClient, ID string) string { - return c.ServiceURL("bandwidths", ID) + return c.ServiceURL(c.ProjectID, "bandwidths", ID) } func DeleteURL(c *golangsdk.ServiceClient, ID string) string { - return c.ServiceURL("bandwidths", ID) + return c.ServiceURL(c.ProjectID, "bandwidths", ID) } func InsertURL(c *golangsdk.ServiceClient, ID string) string { - return c.ServiceURL("bandwidths", ID, "insert") + return c.ServiceURL(c.ProjectID, "bandwidths", ID, "insert") } func RemoveURL(c *golangsdk.ServiceClient, ID string) string { - return c.ServiceURL("bandwidths", ID, "remove") + return c.ServiceURL(c.ProjectID, "bandwidths", ID, "remove") }