From 3652474ee192f238f9d7f7f5c627632a726fefe8 Mon Sep 17 00:00:00 2001 From: edisonxiang Date: Mon, 20 Nov 2017 11:39:45 +0800 Subject: [PATCH] fix some errors --- pkg/volume/cinder/attacher.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/volume/cinder/attacher.go b/pkg/volume/cinder/attacher.go index 95a28c82496..fe466cc4e86 100644 --- a/pkg/volume/cinder/attacher.go +++ b/pkg/volume/cinder/attacher.go @@ -241,8 +241,7 @@ func (attacher *cinderDiskAttacher) waitProbeVolume(devicePath, volumeID string) if exists && err == nil { glog.Infof("Successfully found attached Cinder disk %q at %v.", volumeID, devicePath) return devicePath, nil - } - else { + } else { // Log an error, and continue checking periodically glog.Errorf("Error: could not find attached Cinder disk %q (path: %q): %v", volumeID, devicePath, err) }