Commit e7ddffc8 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 c29aa3d2
......@@ -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
}
......
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