Skip to content

Commit 3c5ed76

Browse files
author
Steven Moy
committed
Fix IMPORT key
1 parent b94169f commit 3c5ed76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iambic/core/template_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def create_or_update_template(
599599
try:
600600
merged_template.write()
601601

602-
if ctx.command == Command.Import:
602+
if ctx.command == Command.IMPORT:
603603
# https://github.com/noqdev/iambic/issues/600
604604
# we want to assert against bad exclude_account statement
605605
if isinstance(new_template, AccessModelMixin) and isinstance(
@@ -622,7 +622,7 @@ def create_or_update_template(
622622
try:
623623
new_template.write()
624624

625-
if ctx.command == Command.Import:
625+
if ctx.command == Command.IMPORT:
626626
# https://github.com/noqdev/iambic/issues/600
627627
# we want to assert against bad exclude_account statement
628628
if isinstance(new_template, AccessModelMixin):

0 commit comments

Comments
 (0)