Bumping k8s dependencies to 1.13
This commit is contained in:
9
vendor/k8s.io/kubernetes/pkg/volume/flexvolume/unmounter.go
generated
vendored
9
vendor/k8s.io/kubernetes/pkg/volume/flexvolume/unmounter.go
generated
vendored
@@ -44,13 +44,16 @@ func (f *flexVolumeUnmounter) TearDown() error {
|
||||
|
||||
func (f *flexVolumeUnmounter) TearDownAt(dir string) error {
|
||||
|
||||
if pathExists, pathErr := util.PathExists(dir); pathErr != nil {
|
||||
return fmt.Errorf("Error checking if path exists: %v", pathErr)
|
||||
} else if !pathExists {
|
||||
pathExists, pathErr := util.PathExists(dir)
|
||||
if !pathExists {
|
||||
glog.Warningf("Warning: Unmount skipped because path does not exist: %v", dir)
|
||||
return nil
|
||||
}
|
||||
|
||||
if pathErr != nil && !util.IsCorruptedMnt(pathErr) {
|
||||
return fmt.Errorf("Error checking path: %v", pathErr)
|
||||
}
|
||||
|
||||
call := f.plugin.NewDriverCall(unmountCmd)
|
||||
call.Append(dir)
|
||||
_, err := call.Run()
|
||||
|
Reference in New Issue
Block a user