From 486b2bceb92a05583627362875d68865a9d837ad Mon Sep 17 00:00:00 2001 From: Judit Novak Date: Tue, 31 Oct 2023 13:58:06 +0100 Subject: [PATCH] Changes requresed on PR review --- src/relations/database_provides.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/relations/database_provides.py b/src/relations/database_provides.py index db8630b0..8d5752e9 100644 --- a/src/relations/database_provides.py +++ b/src/relations/database_provides.py @@ -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