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