gophercloud / utils

Apache License 2.0
20 stars 55 forks source link

ClientConfig fails on secure.yaml absence #145

Closed vooon closed 3 years ago

vooon commented 3 years ago

GetCloudFromYAML start to return error unable to load secure.yaml: no secure.yml file found.

This condition is wrong:

https://github.com/gophercloud/utils/blob/13abf22518866c8220f3685c811736b252842d1c/openstack/clientconfig/requests.go#L141

Instead of string comparison need to define error (or use standard) + errors.Is().