func (w *Watcher) PromoteDeployment(req *structs.DeploymentPromoteRequest, resp *structs.DeploymentUpdateResponse) error {
	watcher, err := w.getOrCreateWatcher(req.DeploymentID)
	if err != nil {
		return err
	}

	return watcher.PromoteDeployment(req, resp)
}
// PromoteDeployment is used to promote a deployment. If promote is false,
// deployment is marked as failed. Otherwise the deployment is updated and an
// evaluation is created.
PromoteDeployment is used to promote a deployment. If promote is false,
deployment is marked as failed. Otherwise the deployment is updated and an
evaluation is created.
// PromoteDeployment is used to promote a deployment . If promote is false // deployment is marked as failed . Otherwise the deployment is updated and an // evaluation is created .
func (w *Watcher) PromoteDeployment(req *structs.DeploymentPromoteRequest, resp *structs.DeploymentUpdateResponse) error {
	watcher, err := w.getOrCreateWatcher(req.DeploymentID)
	if err != nil {
		return err
	}
	return watcher.PromoteDeployment(req, resp)
}
func ( w * Watcher ) PromoteDeployment ( req * structs . DeploymentPromoteRequest , resp * structs . DeploymentUpdateResponse ) error { watcher , err := w . getOrCreateWatcher ( req . DeploymentID ) if err != nil { return err } return watcher . PromoteDeployment ( req , resp ) }
PromoteDeployment is used to promote a deployment.
PromoteDeployment is used to promote a deployment .