mirror of https://github.com/k3s-io/k3s
commit
843fa71f2b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue