mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
GCEPD: fix incorrect return value in WaitForAttach
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
This commit is contained in:
parent
1df88a8a42
commit
3ff8a86f20
@ -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 := ""
|
||||
|
Loading…
Reference in New Issue
Block a user