From 92224d0e1b7ce90e85c7a657616ab5e9597907a6 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Wed, 3 Oct 2018 18:21:26 -0700 Subject: [PATCH] CreateJob now returns response object if available. --- realis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realis.go b/realis.go index d064ab5..80b9139 100644 --- a/realis.go +++ b/realis.go @@ -612,7 +612,7 @@ func (r *realisClient) CreateJob(auroraJob Job) (*aurora.Response, error) { }) if retryErr != nil { - return nil, errors.Wrap(retryErr, "Error sending Create command to Aurora Scheduler") + return resp, errors.Wrap(retryErr, "Error sending Create command to Aurora Scheduler") } return resp, nil }