Skip to content

Commit

Permalink
Merge pull request gophercloud#53 from haxorof/bug-clouds-public-opti…
Browse files Browse the repository at this point in the history
…onal

Fixes incorrect error when clouds-public.yaml is not found
  • Loading branch information
jtopjian authored Jun 10, 2018
2 parents 8972859 + 2c6d3c6 commit 5e68bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openstack/clientconfig/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func LoadPublicCloudsYAML() (map[string]PublicCloud, error) {

content, err := findAndReadPublicCloudsYAML()
if err != nil {
if err.Error() == "no clouds-public.yaml found" {
if err.Error() == "no clouds-public.yaml file found" {
// clouds-public.yaml is optional so just ignore read error
return publicClouds.Clouds, nil
}
Expand Down

0 comments on commit 5e68bc5

Please sign in to comment.