Skip to content

Commit

Permalink
feat(cfn-response): always send an id if not provided (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
portellaa authored Jun 24, 2022
1 parent cae2c17 commit 3195264
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/CloudFormation/run.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import App
import AsyncHTTPClient
import AWSLambdaEvents
import AWSLambdaRuntime
import Foundation
import Models
import NIO

Expand Down Expand Up @@ -52,7 +53,7 @@ extension LambdaResult {
requestId: request.requestId,
logicalResourceId: request.logicalResourceId,
stackId: request.stackId,
physicalResourceId: request.physicalResourceId,
physicalResourceId: request.physicalResourceId ?? UUID().uuidString,
reason: nil,
noEcho: nil,
data: nil
Expand All @@ -63,7 +64,7 @@ extension LambdaResult {
requestId: request.requestId,
logicalResourceId: request.logicalResourceId,
stackId: request.stackId,
physicalResourceId: request.physicalResourceId,
physicalResourceId: request.physicalResourceId ?? UUID().uuidString,
reason: error.localizedDescription,
noEcho: nil,
data: nil
Expand Down

0 comments on commit 3195264

Please sign in to comment.