Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shayancanonical committed Dec 4, 2024
1 parent ddb6349 commit 9e8d9f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/relations/database_provides.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def create_database_and_user(
else router_read_write_endpoints
)
ro_endpoint = (
exposed_read_only_endpoints if self.external_connectivity else router_read_only_endpoints
exposed_read_only_endpoints
if self.external_connectivity
else router_read_only_endpoints
)

self._set_databag(
Expand Down Expand Up @@ -179,7 +181,9 @@ def update_endpoints(
else router_read_write_endpoints
)
ro_endpoint = (
exposed_read_only_endpoints if self.external_connectivity else router_read_only_endpoints
exposed_read_only_endpoints
if self.external_connectivity
else router_read_only_endpoints
)

self._interface.set_endpoints(self._id, rw_endpoint)
Expand Down

0 comments on commit 9e8d9f0

Please sign in to comment.