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 }