Skip to content

Commit

Permalink
Fixes incorrect error when clouds-public.yaml is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
haxorof committed Jun 10, 2018
1 parent 8972859 commit 2c6d3c6
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 2c6d3c6

Please sign in to comment.