Skip to content

Commit 486b2bc

Browse files
committed
Changes requresed on PR review
1 parent caba07d commit 486b2bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/relations/database_provides.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ def __init__(
127127
) -> None:
128128
super().__init__(relation=relation)
129129
self._interface = interface
130-
self._local_databag = self._interface.fetch_my_relation_data([relation.id]).get(
131-
relation.id
132-
)
130+
self._local_databag = self._interface.fetch_my_relation_data([relation.id])[relation.id]
133131
for key in ("database", "username", "password", "endpoints", "read-only-endpoints"):
134132
if key not in self._local_databag:
135133
raise _UserNotCreated

0 commit comments

Comments
 (0)