Skip to content

Commit 6978716

Browse files
committed
config: validate FQN correctly in ExternalStack
1 parent 9a7e889 commit 6978716

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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)