Skip to content

Commit

Permalink
Merge pull request #3679 from kargakis/deploy-enable-triggers-flag-usage
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Jul 13, 2015
2 parents 6d223f3 + b74030e commit a6e1afb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/cmd/cli/cmd/deploy.go
Expand Up @@ -130,8 +130,11 @@ func (o DeployOptions) Validate(args []string) error {
if o.cancelDeploy {
numOptions++
}
if o.enableTriggers {
numOptions++
}
if numOptions > 1 {
return errors.New("only one of --latest, --retry, or --cancel is allowed.")
return errors.New("only one of --latest, --retry, --cancel, or --enable-triggers is allowed.")
}
return nil
}
Expand Down Expand Up @@ -189,7 +192,7 @@ func (o DeployOptions) RunDeploy() error {
return o.osClient.DeploymentConfigs(namespace).Update(config)
},
}
t.enableTriggers(config, o.out)
err = t.enableTriggers(config, o.out)
default:
describer := describe.NewLatestDeploymentsDescriber(o.osClient, o.kubeClient, -1)
desc, err := describer.Describe(config.Namespace, config.Name)
Expand Down

0 comments on commit a6e1afb

Please sign in to comment.