Commit 2080de6a authored by Davanum Srinivas's avatar Davanum Srinivas

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.
parent 5133d19f
...@@ -43,6 +43,7 @@ func (os *OpenStack) Instances() (cloudprovider.Instances, bool) { ...@@ -43,6 +43,7 @@ func (os *OpenStack) Instances() (cloudprovider.Instances, bool) {
compute, err := os.NewComputeV2() compute, err := os.NewComputeV2()
if err != nil { if err != nil {
glog.Errorf("unable to access compute v2 API : %v", err)
return nil, false return nil, false
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment