Skip to content

Commit a6e1afb

Browse files
author
OpenShift Bot
committed
Merge pull request #3679 from kargakis/deploy-enable-triggers-flag-usage
Merged by openshift-bot
2 parents 6d223f3 + b74030e commit a6e1afb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/cmd/cli/cmd/deploy.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,11 @@ func (o DeployOptions) Validate(args []string) error {
130130
if o.cancelDeploy {
131131
numOptions++
132132
}
133+
if o.enableTriggers {
134+
numOptions++
135+
}
133136
if numOptions > 1 {
134-
return errors.New("only one of --latest, --retry, or --cancel is allowed.")
137+
return errors.New("only one of --latest, --retry, --cancel, or --enable-triggers is allowed.")
135138
}
136139
return nil
137140
}
@@ -189,7 +192,7 @@ func (o DeployOptions) RunDeploy() error {
189192
return o.osClient.DeploymentConfigs(namespace).Update(config)
190193
},
191194
}
192-
t.enableTriggers(config, o.out)
195+
err = t.enableTriggers(config, o.out)
193196
default:
194197
describer := describe.NewLatestDeploymentsDescriber(o.osClient, o.kubeClient, -1)
195198
desc, err := describer.Describe(config.Namespace, config.Name)

0 commit comments

Comments
 (0)