Skip to content

Commit 49e318b

Browse files
committed
config: validate FQN correctly in ExternalStack
1 parent 8fe2936 commit 49e318b

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
@@ -315,9 +315,8 @@ def __init__(self, *args, **kwargs):
315315
self.external = True
316316

317317
def validate_fqn(self, data, value):
318-
if (not value and not data["stack_name"]) or \
319-
(value and data["stack_name"]):
320-
raise ValidationError("Exactly one of `fqn` and `stack_name` must "
318+
if value and data["stack_name"]:
319+
raise ValidationError("At most one of `fqn` and `stack_name` must "
321320
"be provided for external stacks")
322321

323322

0 commit comments

Comments
 (0)