Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openstack/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down