diff --git a/src/keria/app/credentialing.py b/src/keria/app/credentialing.py index 92758c9..3810da1 100644 --- a/src/keria/app/credentialing.py +++ b/src/keria/app/credentialing.py @@ -575,6 +575,10 @@ def on_put(req, rep, name, registryName): if "name" not in body: raise falcon.HTTPBadRequest(description="'name' is required in body") + # Drain any just-imported CESR before aliasing an imported registry as local. + if agent.parser.ims: + agent.parser.parse() + name = body["name"] if agent.rgy.registryByName(name) is not None: raise falcon.HTTPBadRequest(