Skip to content

Commit 271ec4c

Browse files
committed
Use API Output type
1 parent c48faa8 commit 271ec4c

File tree

1 file changed

+12
-6
lines changed
  • localstack-core/localstack/services/cloudformation/v2

1 file changed

+12
-6
lines changed

localstack-core/localstack/services/cloudformation/v2/entities.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
CreateChangeSetInput,
99
DescribeChangeSetOutput,
1010
ExecutionStatus,
11+
Output,
1112
Parameter,
1213
StackDriftInformation,
1314
StackDriftStatus,
@@ -111,12 +112,17 @@ def describe_details(self) -> ApiStack:
111112
"Tags": [],
112113
}
113114
if self.resolved_outputs:
114-
result["Outputs"] = [
115-
# TODO(parity): Description, ExportName
116-
# TODO(parity): what happens on describe stack when the stack has not been deployed yet?
117-
{"OutputKey": k, "OutputValue": v}
118-
for k, v in self.resolved_outputs.items()
119-
]
115+
describe_outputs = []
116+
for key, value in self.resolved_outputs.items():
117+
describe_outputs.append(
118+
Output(
119+
# TODO(parity): Description, ExportName
120+
# TODO(parity): what happens on describe stack when the stack has not been deployed yet?
121+
OutputKey=key,
122+
OutputValue=value,
123+
)
124+
)
125+
result["Outputs"] = describe_outputs
120126
return result
121127

122128

0 commit comments

Comments
 (0)