return response object in case of noop update ()

Return response object such that end user can look into what went wrong when the response is nil.

Cases like this occur when there is a no-op update.
This commit is contained in:
Suchith Arodi 2020-07-29 13:30:56 -07:00 committed by GitHub
parent 5f667555dc
commit 4acb0d54a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -688,7 +688,7 @@ func (r *realisClient) CreateService(
return resp, resp.GetResult_().GetStartJobUpdateResult_(), nil return resp, resp.GetResult_().GetStartJobUpdateResult_(), nil
} }
return nil, nil, errors.New("results object is nil") return resp, nil, errors.New("results object is nil")
} }
func (r *realisClient) ScheduleCronJob(auroraJob Job) (*aurora.Response, error) { func (r *realisClient) ScheduleCronJob(auroraJob Job) (*aurora.Response, error) {