Merge pull request #69558 from andyzhangx/GetVolumeLimits-warning

fix GetVolumeLimits log flushing issue
pull/58/head
k8s-ci-robot 2018-10-10 16:46:54 -07:00 committed by GitHub
commit 3ac3889838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -144,8 +144,7 @@ func (plugin *azureDataDiskPlugin) GetVolumeLimits() (map[string]int64, error) {
// hoping external CCM or admin can set it. Returning
// default values from here will mean, no one can
// override them.
glog.Errorf("failed to get azure cloud in GetVolumeLimits, plugin.host: %s", plugin.host.GetHostName())
return volumeLimits, nil
return nil, fmt.Errorf("failed to get azure cloud in GetVolumeLimits, plugin.host: %s", plugin.host.GetHostName())
}
instances, ok := az.Instances()