fix GetVolumeLimits log flushing issue

fix logging flushing issue in GetVolumeLimits
pull/58/head
andyzhangx 2018-10-09 06:58:45 +00:00
parent a29b093a56
commit e67b369dfa
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()