Skip to content

Commit

Permalink
Modified OpenStack provider to use domain_id or domain_name so that i…
Browse files Browse the repository at this point in the history
…t is compatible with v3 API
  • Loading branch information
BabisK committed Jun 1, 2018
1 parent 6fd9acf commit 02e1d0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions provider/os/os_discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ func newClient(args map[string]string, l *log.Logger) (*gophercloud.ServiceClien
}
projectID := argsOrEnv(args, "project_id", "OS_PROJECT_ID")
insecure := argsOrEnv(args, "insecure", "OS_INSECURE")
domain_id := argsOrEnv(args, "domain_id", "OS_DOMAIN_ID")
domain_name := argsOrEnv(args, "domain_name", "OS_DOMAIN_NAME")

if url == "" {
return nil, fmt.Errorf("discover-os: Auth url must be provided")
}

ao := gophercloud.AuthOptions{
// "domain_id": OS_DOMAIN_ID
DomainID: "",
// "domain_name": OS_DOMAIN_NAME
DomainName: "",
DomainID: domain_id,
DomainName: domain_name,
IdentityEndpoint: url,
Username: username,
Password: password,
Expand Down

0 comments on commit 02e1d0a

Please sign in to comment.