Changing CreateService to mimic CreateJob by setting the batch size to the instance count.

This commit is contained in:
Renan DelValle 2018-01-17 15:37:55 -08:00
parent b8bf774aac
commit 1e6d4a516c
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -622,6 +622,7 @@ func (r *realisClient) CreateService(auroraJob Job, settings UpdateSettings) (*a
// Create a new job update object and ship it to the StartJobUpdate api
update := NewUpdateJob(auroraJob.TaskConfig(), &settings.settings)
update.InstanceCount(auroraJob.GetInstanceCount())
update.BatchSize(auroraJob.GetInstanceCount())
resp, err := r.StartJobUpdate(update, "")
if err != nil {