Skip to content

Commit

Permalink
Merge pull request kubernetes#107236 from cyclinder/fix_bug_WaitForAt…
Browse files Browse the repository at this point in the history
…tach

GCEPD: fix incorrect return value in WaitForAttach
  • Loading branch information
k8s-ci-robot authored Feb 8, 2022
2 parents eda02de + 3ff8a86 commit 6a5b3da
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 6a5b3da

Please sign in to comment.