Commit 98fdcf15 authored by gmarek's avatar gmarek

Don't retry creating route if it already exists

parent af23f40f
......@@ -2400,7 +2400,12 @@ func (gce *GCECloud) CreateRoute(clusterName string, nameHint string, route *clo
Description: k8sNodeRouteTag,
}).Do()
if err != nil {
return err
if isHTTPErrorCode(err, http.StatusConflict) {
glog.Info("Route %v already exists.")
return nil
} else {
return err
}
}
return gce.waitForGlobalOp(insertOp)
}
......
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