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:
parent
ef24656e29
commit
d11a010562
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user