log error for os.NewComputeV2

Since we are returning false, we are kind of losing the error message,
so we should at least log it.
pull/8/head
Davanum Srinivas 2018-05-11 13:39:12 -04:00
parent 5133d19fb0
commit 2080de6adc
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ func (os *OpenStack) Instances() (cloudprovider.Instances, bool) {
compute, err := os.NewComputeV2()
if err != nil {
glog.Errorf("unable to access compute v2 API : %v", err)
return nil, false
}