Skip to content

Commit 8e6dce2

Browse files
authored
Merge pull request openwallet-foundation#1880 from sicpa-dlab/fix/external-profile-classnames
Allow fully qualified class names for profile managers
2 parents 4b1fa13 + 13648d3 commit 8e6dce2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

aries_cloudagent/core/profile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,14 @@ def __init__(self):
315315

316316
def provide(self, settings: BaseSettings, injector: BaseInjector):
317317
"""Create the profile manager instance."""
318+
mgr_type = settings.get_value("wallet.type", default="in_memory")
318319

319-
mgr_type = settings.get_value("wallet.type", default="in_memory").lower()
320-
if mgr_type == "basic":
320+
if mgr_type.lower() == "basic":
321321
# map previous value
322322
mgr_type = "in_memory"
323323

324324
# mgr_type may be a fully qualified class name
325-
mgr_class = self.MANAGER_TYPES.get(mgr_type, mgr_type)
325+
mgr_class = self.MANAGER_TYPES.get(mgr_type.lower(), mgr_type)
326326

327327
if mgr_class not in self._inst:
328328
LOGGER.info("Create profile manager: %s", mgr_type)

0 commit comments

Comments
 (0)