From 247a5f1ea80ddd9a5d810bdc98f7179cfc4f884a Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 8 Sep 2021 17:58:48 +0200 Subject: [PATCH] core (memory/slqa): implement `getProfileById` rel 361 --- sat/memory/sqla.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sat/memory/sqla.py b/sat/memory/sqla.py index dc39b0e0..e390a20e 100644 --- a/sat/memory/sqla.py +++ b/sat/memory/sqla.py @@ -114,6 +114,9 @@ class Storage: # profile id to component entry point self.components: Dict[int, str] = {} + def getProfileById(self, profile_id): + return self.profiles.get(profile_id) + async def migrateApply(self, *args: str, log_output: bool = False) -> None: """Do a migration command