File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,17 @@ func lambdaWrapWithClient(lambdaFunction CustomResourceFunction, client httpClie
42
42
r .PhysicalResourceID , r .Data , err = lambdaFunction (ctx , event )
43
43
funcDidPanic = false
44
44
45
- if r .PhysicalResourceID == "" {
46
- log .Println ("PhysicalResourceID must exist, copying Log Stream name" )
47
- r .PhysicalResourceID = lambdacontext .LogStreamName
48
- }
49
45
if err != nil {
50
46
r .Status = StatusFailed
51
47
r .Reason = err .Error ()
52
48
log .Printf ("sending status failed: %s" , r .Reason )
53
49
} else {
54
50
r .Status = StatusSuccess
51
+
52
+ if r .PhysicalResourceID == "" {
53
+ log .Println ("PhysicalResourceID must exist on creation, copying Log Stream name" )
54
+ r .PhysicalResourceID = lambdacontext .LogStreamName
55
+ }
55
56
}
56
57
57
58
err = r .sendWith (client )
You can’t perform that action at this time.
0 commit comments