From 559b2f9f15faa0a5de5e09f11c3996633866cc27 Mon Sep 17 00:00:00 2001 From: Frostyfrog <509363+TheTechmage@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:13:24 -0600 Subject: [PATCH] fix: print provision messages if auto-provision is triggered (#3077) It was recently discovered that if you set a static seed, and you have auto-provisioning enabled on the start command, there is no way to get the verkey for the created DID. The verkey is never printed out to the command line and I do not remember there being an API for retrieving the verkey (one of those, "See it once, copy it, or forever lose it" kinds of things). After this point in the code, the only thing that "provision" enables are the print statements talking about the did/verkey being created as well as some basic profile information. It doesn't trigger any code that would make changes to the system, those lines precede the line I've added. Signed-off-by: Colton Wolkins (Indicio work address) Co-authored-by: jamshale <31809382+jamshale@users.noreply.github.com> --- aries_cloudagent/config/wallet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aries_cloudagent/config/wallet.py b/aries_cloudagent/config/wallet.py index a49aae304f..f857b07847 100644 --- a/aries_cloudagent/config/wallet.py +++ b/aries_cloudagent/config/wallet.py @@ -55,6 +55,7 @@ async def wallet_config( except ProfileNotFoundError: if settings.get("auto_provision", False): profile = await mgr.provision(context, profile_cfg) + provision = True else: raise