Fix mismatched types

pull/6/head
Janet Kuo 2016-02-09 18:57:53 -08:00
parent bb9760aefc
commit a50267ab3e
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ func (r *RollingUpdater) getOrCreateTargetControllerWithClient(controller *api.R
return nil, false, err return nil, false, err
} }
if controller.Spec.Replicas <= 0 { if controller.Spec.Replicas <= 0 {
return nil, false, fmt.Errorf("Invalid controller spec for %s; required: > 0 replicas, actual: %d\n", controller.Name, controller.Spec) return nil, false, fmt.Errorf("Invalid controller spec for %s; required: > 0 replicas, actual: %d\n", controller.Name, controller.Spec.Replicas)
} }
// The controller wasn't found, so create it. // The controller wasn't found, so create it.
if controller.Annotations == nil { if controller.Annotations == nil {