Skip to content

Commit

Permalink
config: validate FQN correctly in ExternalStack
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkza committed Jul 4, 2018
1 parent 8e3e603 commit 05e6bbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stacker/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,8 @@ def __init__(self, *args, **kwargs):
self.external = True

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


Expand Down

0 comments on commit 05e6bbb

Please sign in to comment.