Skip to content

Commit 46d8271

Browse files
author
OpenShift Bot
committed
Merge pull request #5427 from fabianofranz/bugs_1275234
Merged by openshift-bot
2 parents fabe21c + e1fa704 commit 46d8271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/deploy/scaler/scale.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (scaler *DeploymentConfigScaler) Scale(namespace, name string, newSize uint
3939
}
4040
cond := kubectl.ScaleCondition(scaler, preconditions, namespace, name, newSize)
4141
if err := wait.Poll(retry.Interval, retry.Timeout, cond); err != nil {
42-
if scaleErr := err.(kubectl.ControllerScaleError); kerrors.IsNotFound(scaleErr.ActualError) {
42+
if scaleErr, ok := err.(kubectl.ControllerScaleError); ok && kerrors.IsNotFound(scaleErr.ActualError) {
4343
glog.Infof("No deployment found for dc/%s. Scaling the deployment configuration template...", name)
4444
dc, err := scaler.dcClient.DeploymentConfigs(namespace).Get(name)
4545
if err != nil {

0 commit comments

Comments
 (0)