Skip to content

Commit

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

Automated cherry pick of #24452 upstream release 1.2
  • Loading branch information
a-robinson committed Apr 19, 2016
2 parents 15f1165 + 193ad31 commit f2d4b68
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 f2d4b68

Please sign in to comment.