Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Merge 7ac2716 into e00690e
Browse files Browse the repository at this point in the history
  • Loading branch information
taiojia committed Nov 16, 2016
2 parents e00690e + 7ac2716 commit 97132d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openstack/auth_env.go
Expand Up @@ -19,7 +19,7 @@ var (

// AuthOptionsFromEnv fills out an AuthOptions structure from the environment
// variables: OS_AUTH_URL, OS_USERNAME, OS_USERID, OS_PASSWORD, OS_TENANT_ID,
// OS_TENANT_NAME, OS_DOMAIN_ID, OS_DOMAIN_NAME, OS_TOKEN. It checks that
// OS_TENANT_NAME, OS_USER_DOMAIN_ID, OS_USER_DOMAIN_NAME, OS_TOKEN. It checks that
// (1) OS_AUTH_URL is set, (2) OS_USERNAME, OS_USERID, or OS_TOKEN is set,
// (3) OS_PASSWORD or OS_TOKEN is set.
func AuthOptionsFromEnv() (gophercloud.AuthOptions, error) {
Expand All @@ -29,8 +29,8 @@ func AuthOptionsFromEnv() (gophercloud.AuthOptions, error) {
password := os.Getenv("OS_PASSWORD")
tenantID := os.Getenv("OS_TENANT_ID")
tenantName := os.Getenv("OS_TENANT_NAME")
domainID := os.Getenv("OS_DOMAIN_ID")
domainName := os.Getenv("OS_DOMAIN_NAME")
domainID := os.Getenv("OS_USER_DOMAIN_ID")
domainName := os.Getenv("OS_USER_DOMAIN_NAME")
tokenID := os.Getenv("OS_TOKEN")

if authURL == "" {
Expand Down

0 comments on commit 97132d4

Please sign in to comment.