Skip to content

Commit

Permalink
GCEPD: fix incorrect return value in WaitForAttach
Browse files Browse the repository at this point in the history
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
  • Loading branch information
cyclinder committed Dec 28, 2021
1 parent 1df88a8 commit 3ff8a86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/volume/gcepd/attacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 := ""
Expand Down

0 comments on commit 3ff8a86

Please sign in to comment.