From e4ff1253a6cc1b233520343d0cb7297916b424fa Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Thu, 15 Apr 2021 15:14:28 +0300 Subject: [PATCH] BC Storage to StorageDict --- Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py | 9 ++++++++- Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py b/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py index 0cc82b95..3bedc69e 100644 --- a/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py +++ b/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py @@ -421,4 +421,11 @@ def Update(inGSettings): # Remove old structure Scheduler del inGSettings["Scheduler"] if lL: lL.warning(f"Backward compatibility (v1.1.20 to v1.2.0): Convert Scheduler to SchedulerDict with new features") # Log about compatibility - + # # Convert to Storage to StorageDict + if "Storage" in inGSettings: + # Check if Server is active > convert to ServerDict + inGSettings["StorageDict"] = inGSettings["Storage"] + if lL: lL.warning( + f"Backward compatibility (v1.2.1 to v1.2.2): Convert Storage to StorageDict") # Log about compatibility + # Remove old structure Scheduler + del inGSettings["Storage"] diff --git a/Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py b/Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py index fa08048d..717fed38 100644 --- a/Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py +++ b/Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py @@ -260,7 +260,7 @@ def __Create__(): } }, "Logger": logging.getLogger("Orchestrator"), - "Storage": { + "StorageDict": { "Robot_R01_help": "Robot data storage in orchestrator env", "Robot_R01": {}, "R01_OrchestratorToRobot": {"Test2": "Test2"}