From 5d8dd9cf3f50cadf6539753a195dfed24c1bd110 Mon Sep 17 00:00:00 2001 From: sdimovv <36302090+sdimovv@users.noreply.github.com> Date: Sat, 12 Nov 2022 12:23:33 +0000 Subject: [PATCH] blueprints: Fixed bug causing blueprint instance context be discarded (#3990) Fixed bug causing blueprint instance context be discarded when applying a blueprint. --- authentik/blueprints/v1/importer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/authentik/blueprints/v1/importer.py b/authentik/blueprints/v1/importer.py index e7560e02c9..37ec25707f 100644 --- a/authentik/blueprints/v1/importer.py +++ b/authentik/blueprints/v1/importer.py @@ -85,11 +85,11 @@ class Importer: self.__import = from_dict(Blueprint, import_dict) except DaciteError as exc: raise EntryInvalidError from exc - context = {} - always_merger.merge(context, self.__import.context) + ctx = {} + always_merger.merge(ctx, self.__import.context) if context: - always_merger.merge(context, context) - self.__import.context = context + always_merger.merge(ctx, context) + self.__import.context = ctx @property def blueprint(self) -> Blueprint: