Return as not ready if it new RS is nil

pull/2370/head
Kiichiro Okano 9 years ago
parent 0c91d41221
commit 46cad97950

@ -92,7 +92,7 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
}
// Find RS associated with deployment
newReplicaSet, err := deploymentutil.FindNewReplicaSet(currentDeployment, replicaSets)
if err != nil {
if err != nil || newReplicaSet == nil {
return false, err
}
newDeployment := deployment{

Loading…
Cancel
Save