Commit 843fa71f authored by Brendan Burns's avatar Brendan Burns

Merge pull request #4938 from tkulczynski/opfix

Fix waiting for GCE Operations
parents 4ef76aba c4e786c7
......@@ -17,6 +17,7 @@ limitations under the License.
package gce_cloud
import (
"errors"
"fmt"
"io"
"io/ioutil"
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment