From a50267ab3e90ee64722a587b2d374e1cc9cd66b5 Mon Sep 17 00:00:00 2001 From: Janet Kuo Date: Tue, 9 Feb 2016 18:57:53 -0800 Subject: [PATCH] Fix mismatched types --- pkg/kubectl/rolling_updater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubectl/rolling_updater.go b/pkg/kubectl/rolling_updater.go index 6a6d579b5d1..7571d96bdea 100644 --- a/pkg/kubectl/rolling_updater.go +++ b/pkg/kubectl/rolling_updater.go @@ -412,7 +412,7 @@ func (r *RollingUpdater) getOrCreateTargetControllerWithClient(controller *api.R return nil, false, err } 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. if controller.Annotations == nil {