Skip to content

Commit da03b14

Browse files
committed
config: validate FQN correctly in ExternalStack
1 parent bc28d82 commit da03b14

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stacker/config/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,8 @@ def __init__(self, *args, **kwargs):
319319
self.external = True
320320

321321
def validate_fqn(self, data, value):
322-
if (not value and not data["stack_name"]) or \
323-
(value and data["stack_name"]):
324-
raise ValidationError("Exactly one of `fqn` and `stack_name` must "
322+
if value and data["stack_name"]:
323+
raise ValidationError("At most one of `fqn` and `stack_name` must "
325324
"be provided for external stacks")
326325

327326

0 commit comments

Comments
 (0)