Updating the client to not use instanceId 0 by default, instead get the instanceId from the list of active Instances

This commit is contained in:
Mukkavilli, Sunil 2017-03-21 12:52:29 -07:00
parent 1b475175db
commit 0d9b869583
2 changed files with 29 additions and 4 deletions

View file

@ -327,7 +327,7 @@ func (r *realisClient) AddInstances(instKey aurora.InstanceKey, count int32) (*a
return response.ResponseCodeCheck(resp)
}
//Scale down the number of instances under a job configuration using the configuratipn of a specific instance
//Scale down the number of instances under a job configuration using the configuration of a specific instance
func (r *realisClient) RemoveInstances(key *aurora.JobKey, count int32) (*aurora.Response, error) {
instanceIds, err := r.GetInstanceIds(key, aurora.ACTIVE_STATES)
if err != nil {