Skip to content

Commit 2d4212a

Browse files
authored
Fix subwallet anoncreds upgrade check (openwallet-foundation#3345)
Signed-off-by: jamshale <[email protected]>
1 parent fc6f35d commit 2d4212a

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

acapy_agent/core/conductor.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -856,19 +856,7 @@ async def check_for_valid_wallet_type(self, profile):
856856

857857
async def check_for_wallet_upgrades_in_progress(self):
858858
"""Check for upgrade and upgrade if needed."""
859-
860-
# We need to use the correct multitenant manager for single vs multiple wallets
861-
# here because the multitenant provider hasn't been initialized yet.
862-
manager_type = self.context.settings.get_value(
863-
"multitenant.wallet_type", default="basic"
864-
).lower()
865-
866-
manager_class = MultitenantManagerProvider.MANAGER_TYPES.get(
867-
manager_type, manager_type
868-
)
869-
870-
multitenant_mgr = self.context.inject_or(manager_class)
871-
if multitenant_mgr:
859+
if self.context.settings.get_value("multitenant.enabled"):
872860
subwallet_profiles = await get_subwallet_profiles_from_storage(
873861
self.root_profile
874862
)

acapy_agent/wallet/anoncreds_upgrade.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ async def check_upgrade_completion_loop(profile: Profile, is_subwallet=False):
699699
UpgradeInProgressSingleton().remove_wallet(profile.name)
700700
if is_subwallet:
701701
await upgrade_subwallet(profile)
702+
await finish_upgrade(profile)
702703
LOGGER.info(
703704
f"""Upgrade of subwallet {profile.settings.get('wallet.name')} has completed. Profile is now askar-anoncreds""" # noqa: E501
704705
)

0 commit comments

Comments
 (0)