func (w *Watcher) forceAdd(dID string) (*deploymentWatcher, error) {
	// Build the request
	args := &structs.DeploymentSpecificRequest{DeploymentID: dID}
	var resp structs.SingleDeploymentResponse
	if err := w.stateWatchers.GetDeployment(args, &resp); err != nil {
		return nil, err
	}

	if resp.Deployment == nil {
		return nil, fmt.Errorf("unknown deployment %q", dID)
	}

	return w.addLocked(resp.Deployment)
}
// forceAdd is used to force a lookup of the given deployment object and create
// a watcher. If the deployment does not exist or is terminal an error is
// returned.
forceAdd is used to force a lookup of the given deployment object and create
a watcher. If the deployment does not exist or is terminal an error is
returned.
// forceAdd is used to force a lookup of the given deployment object and create // a watcher . If the deployment does not exist or is terminal an error is // returned .
func (w *Watcher) forceAdd(dID string) (*deploymentWatcher, error) {
	args := &structs.DeploymentSpecificRequest{DeploymentID: dID}
	var resp structs.SingleDeploymentResponse
	if err := w.stateWatchers.GetDeployment(args, &resp); err != nil {
		return nil, err
	}
	if resp.Deployment == nil {
		return nil, fmt.Errorf("unknown deployment %q", dID)
	}
	return w.addLocked(resp.Deployment)
}
func ( w * Watcher ) forceAdd ( dID string ) ( * deploymentWatcher , error ) { args := & structs . DeploymentSpecificRequest { DeploymentID : dID } var resp structs . SingleDeploymentResponse if err := w . stateWatchers . GetDeployment ( args , & resp ) ; err != nil { return nil , err } if resp . Deployment == nil { return nil , fmt . Errorf ( " " , dID ) } return w . addLocked ( resp . Deployment ) }
forceAdd is used to force a lookup of the given deployment object and create
a watcher.
forceAdd is used to force a lookup of the given deployment object and create a watcher .
// Build the request