Skip to content

Commit 5221089

Browse files
committed
Merge branch 'morosi-fix' into 'master'
Add missing check to call diff/show on constructs See merge request it/e3-aws!86
2 parents 377c5dd + 6432ac8 commit 5221089

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/e3/aws/troposphere/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,11 @@ def _show(self, stack: cfn.Stack) -> None:
445445
# and so is not able to diff itself. This must be done via the PyFunction
446446
# construct
447447
for construct in stack.constructs:
448-
if self.args.diff:
449-
construct.diff(stack=stack)
450-
else:
451-
construct.show(stack=stack)
448+
if isinstance(construct, Construct):
449+
if self.args.diff:
450+
construct.diff(stack=stack)
451+
else:
452+
construct.show(stack=stack)
452453

453454
# Output the rest of the stack
454455
super()._show(stack=stack)

0 commit comments

Comments
 (0)