From e67b369dfafe6703e7b3890e2187ae128d90f20d Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Tue, 9 Oct 2018 06:58:45 +0000 Subject: [PATCH] fix GetVolumeLimits log flushing issue fix logging flushing issue in GetVolumeLimits --- pkg/volume/azure_dd/azure_dd.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/volume/azure_dd/azure_dd.go b/pkg/volume/azure_dd/azure_dd.go index 705e2cba74..1e19e9e63e 100644 --- a/pkg/volume/azure_dd/azure_dd.go +++ b/pkg/volume/azure_dd/azure_dd.go @@ -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()