Skip to content

Commit

Permalink
[Resolves Sceptre#1462] Diff fails is stack ignore is True
Browse files Browse the repository at this point in the history
  • Loading branch information
goopilot committed May 1, 2024
1 parent 88d62b3 commit 1c664e6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sceptre/cli/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ def diff_command(
with execution_context:
diffs: Dict[Stack, StackDiff] = plan.diff(stack_differ)

num_stacks_with_diff = output_diffs(
diffs.values(), writer_class, sys.stdout, output_format
)
num_stacks_with_diff = 0
if diffs.values():
num_stacks_with_diff = output_diffs(
diffs.values(), writer_class, sys.stdout, output_format
)

if num_stacks_with_diff:
logger.warning(f"{num_stacks_with_diff} stacks with differences detected.")
Expand Down

0 comments on commit 1c664e6

Please sign in to comment.