Skip to content

Commit

Permalink
Merge pull request kubernetes#24491 from a-robinson/automated-cherry-…
Browse files Browse the repository at this point in the history
…pick-of-#24452-upstream-release-1.2

Automated cherry pick of kubernetes#24452 upstream release 1.2
  • Loading branch information
a-robinson committed Apr 19, 2016
2 parents e5a7ab6 + 19599d8 commit aa824cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cloudprovider/providers/gce/gce.go
Original file line number Diff line number Diff line change
Expand Up @@ -2220,6 +2220,11 @@ func (gce *GCECloud) getDiskByNameUnknownZone(diskName string) (*gceDisk, error)
if err != nil {
return nil, err
}
// findDiskByName returns (nil,nil) if the disk doesn't exist, so we can't
// assume that a disk was found unless disk is non-nil.
if disk == nil {
continue
}
if found != nil {
return nil, fmt.Errorf("GCE persistent disk name was found in multiple zones: %q", diskName)
}
Expand Down

0 comments on commit aa824cb

Please sign in to comment.