From 4acb0d54a948c46d6cdc9da18831f121748dff03 Mon Sep 17 00:00:00 2001 From: Suchith Arodi Date: Wed, 29 Jul 2020 13:30:56 -0700 Subject: [PATCH] return response object in case of noop update (#125) 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. --- realis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realis.go b/realis.go index 86cc8de..5c3b8e0 100644 --- a/realis.go +++ b/realis.go @@ -688,7 +688,7 @@ func (r *realisClient) CreateService( 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) {