1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

Cleanup temp environment before assigning it to an user

This commit is contained in:
Adolfo Gómez García 2021-03-05 11:01:23 +01:00
parent ef24656e29
commit d11a010562

View File

@ -145,6 +145,9 @@ class Environment:
Provides a temporary environment needed in some calls (test provider, for example)
It will not make environment persistent
"""
env = Environment(TEMP_ENV)
env.storage.delete()
env.cache.clean()
return Environment(TEMP_ENV)
@staticmethod