Skip to content

Commit

Permalink
Changes requresed on PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
juditnovak committed Oct 31, 2023
1 parent caba07d commit 486b2bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/relations/database_provides.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ def __init__(
) -> None:
super().__init__(relation=relation)
self._interface = interface
self._local_databag = self._interface.fetch_my_relation_data([relation.id]).get(
relation.id
)
self._local_databag = self._interface.fetch_my_relation_data([relation.id])[relation.id]
for key in ("database", "username", "password", "endpoints", "read-only-endpoints"):
if key not in self._local_databag:
raise _UserNotCreated
Expand Down

0 comments on commit 486b2bc

Please sign in to comment.