Skip to content

Commit 05e6bbb

Browse files
committed
config: validate FQN correctly in ExternalStack
1 parent 8e3e603 commit 05e6bbb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stacker/config/__init__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,8 @@ def __init__(self, *args, **kwargs):
300300
self.external = True
301301

302302
def validate_fqn(self, data, value):
303-
if (not value and not data["stack_name"]) or \
304-
(value and data["stack_name"]):
305-
raise ValidationError("Exactly one of `fqn` and `stack_name` must "
303+
if value and data["stack_name"]:
304+
raise ValidationError("At most one of `fqn` and `stack_name` must "
306305
"be provided for external stacks")
307306

308307

0 commit comments

Comments
 (0)