GCEPD: fix incorrect return value in WaitForAttach

Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
This commit is contained in:
cyclinder 2021-12-28 09:48:35 +08:00
parent 1df88a8a42
commit 3ff8a86f20

View File

@ -242,8 +242,9 @@ func (attacher *gcePersistentDiskAttacher) WaitForAttach(spec *volume.Spec, devi
id, err := getDiskID(pdName, exec)
if err != nil {
klog.Errorf("WaitForAttach (windows) failed with error %s", err)
return "", err
}
return id, err
return id, nil
}
partition := ""