Skip to content

Commit

Permalink
refactor based on reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
kelkawi-a committed Jun 14, 2023
1 parent 091249d commit 029cb2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ def _validate(self):
if self.config[param].strip() == "":
raise ValueError(f"Invalid config: {param} value missing")

ingress_relation = self.model.relations.get("nginx-route")
if not ingress_relation:
if not self.model.relations.get("nginx-route"):
raise ValueError("Invalid config: auth cannot work without ingress relation")

@log_event_handler(logger)
Expand Down

0 comments on commit 029cb2d

Please sign in to comment.