Skip to content

Commit 009cbef

Browse files
author
OpenShift Bot
authored
Merge pull request #14019 from mfojtik/fix-cancel-suggestion
Merged by openshift-bot
2 parents e7e8ae1 + bbfeb00 commit 009cbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/cli/cmd/deploy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func (o DeployOptions) deploy(config *deployapi.DeploymentConfig) error {
245245
if err == nil && !deployutil.IsTerminatedDeployment(deployment) {
246246
// Reject attempts to start a concurrent deployment.
247247
return fmt.Errorf("#%d is already in progress (%s).\nOptionally, you can cancel this deployment using 'oc rollout cancel dc/%s'.",
248-
config.Status.LatestVersion, deployutil.DeploymentStatusFor(deployment), deployment.Name)
248+
config.Status.LatestVersion, deployutil.DeploymentStatusFor(deployment), config.Name)
249249
}
250250
if err != nil && !kerrors.IsNotFound(err) {
251251
return err

0 commit comments

Comments
 (0)