Skip to content

Commit

Permalink
Merge pull request kubernetes#4938 from tkulczynski/opfix
Browse files Browse the repository at this point in the history
Fix waiting for GCE Operations
  • Loading branch information
brendandburns committed Mar 2, 2015
2 parents 4ef76ab + c4e786c commit 843fa71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cloudprovider/gce/gce.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package gce_cloud

import (
"errors"
"fmt"
"io"
"io/ioutil"
Expand Down Expand Up @@ -195,6 +196,9 @@ func (gce *GCECloud) waitForRegionOp(op *compute.Operation, region string) error
return err
}
}
if pollOp.Error != nil && len(pollOp.Error.Errors) > 0 {
return errors.New(pollOp.Error.Errors[0].Message)
}
return nil
}

Expand Down

0 comments on commit 843fa71

Please sign in to comment.