From 28a8829fdcf5bf733add60b819629f734726f632 Mon Sep 17 00:00:00 2001 From: edisonxiang Date: Tue, 7 Aug 2018 14:26:01 +0800 Subject: [PATCH] fix bugs in sfs --- openstack/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack/client.go b/openstack/client.go index e87bad3e4..70c09408f 100644 --- a/openstack/client.go +++ b/openstack/client.go @@ -546,8 +546,8 @@ func NewOBSService(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) //TODO: Need to change to sfs client type from evs once available //NewSFSV2 creates a service client that is used for Huawei cloud for SFS , it replaces the EVS type. func NewHwSFSV2(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error) { - sc, err := initClientOpts(client, eo, "evs") - sc.Endpoint = strings.Replace(sc.Endpoint, "evs", "sfs", 1) + sc, err := initClientOpts(client, eo, "compute") + sc.Endpoint = strings.Replace(sc.Endpoint, "ecs", "sfs", 1) return sc, err }