From 9a84d569406d9f2cc9b15c75ae62103f7a4b9a15 Mon Sep 17 00:00:00 2001 From: glukhman <47591609+glukhman@users.noreply.github.com> Date: Thu, 31 Dec 2020 16:14:27 +0200 Subject: [PATCH] Fix-idd-restore-script-511 (#2538) --- .../cloudify_system_workflows/snapshots/restore_idd_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflows/cloudify_system_workflows/snapshots/restore_idd_script.py b/workflows/cloudify_system_workflows/snapshots/restore_idd_script.py index 73d895f780..607d737482 100644 --- a/workflows/cloudify_system_workflows/snapshots/restore_idd_script.py +++ b/workflows/cloudify_system_workflows/snapshots/restore_idd_script.py @@ -56,6 +56,7 @@ def get_storage_manager_instance(): """ try: with _get_flask_app().app_context(): + config.instance.load_configuration() sm = get_storage_manager() yield sm finally: @@ -70,7 +71,6 @@ def _get_flask_app(): if value is not None: environ[envvar] = value - config.instance.load_configuration() app = setup_flask_app() set_admin_current_user(app) return app