Skip to content

Commit

Permalink
Fix-idd-restore-script-511 (#2538)
Browse files Browse the repository at this point in the history
  • Loading branch information
glukhman authored Dec 31, 2020
1 parent ab8b4ed commit 9a84d56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 9a84d56

Please sign in to comment.