Skip to content

Commit

Permalink
Fix Handler returning SUCCESS but not returning the primaryIdentifier…
Browse files Browse the repository at this point in the history
… for the physical resource
  • Loading branch information
brianterry authored Apr 20, 2020
1 parent 82d22a0 commit f14e5b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cfn/cfn.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,12 @@ func makeEventFunc(h Handler) eventFunc {
}

if isMutatingAction(event.Action) {
callbackAdapter.ReportStatus(translateStatus(progEvt.OperationStatus), event.RequestData.ResourceProperties, progEvt.Message, string(r.ErrorCode))
m, err := encoding.Marshal(progEvt.ResourceModel)
if err != nil {
log.Printf("Error reporting status: %v", err)
return re.report(event, "Error", err, unmarshalingError)
}
callbackAdapter.ReportStatus(translateStatus(progEvt.OperationStatus), m, progEvt.Message, string(r.ErrorCode))
}

switch r.OperationStatus {
Expand Down

0 comments on commit f14e5b3

Please sign in to comment.