From fc4a0b1f505b190eb53f4e860f906db3162e3ef2 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Sat, 5 Dec 2020 22:28:40 +0300 Subject: [PATCH] Add AgentDict in settings = Backward compatibility --- Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py | 6 +++++- Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py b/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py index d05d0a61..e46e6470 100644 --- a/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py +++ b/Sources/pyOpenRPA/Orchestrator/BackwardCompatibility.py @@ -356,4 +356,8 @@ def Update(inGSettings): "DumpLogList": [], # Will be filled automatically "DumpLogListHashStr": None, # Will be filled automatically }) - if lL: lL.warning(f"Backward compatibility (v1.1.20 to v1.2.0): Create new attribute 'Client > DumpLog... with default parameters'") # Log about compatibility \ No newline at end of file + if lL: lL.warning(f"Backward compatibility (v1.1.20 to v1.2.0): Create new attribute 'Client > DumpLog... with default parameters'") # Log about compatibility + if "AgentDict" not in inGSettings: # Create new AgentDict structure + inGSettings["AgentDict"]= {} + if lL: lL.warning( + f"Backward compatibility (v1.1.20 to v1.2.0): Create new attribute 'AgentDict'") # Log about compatibility \ No newline at end of file diff --git a/Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py b/Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py index cd16a728..498e1653 100644 --- a/Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py +++ b/Sources/pyOpenRPA/Orchestrator/SettingsTemplate.py @@ -288,6 +288,9 @@ def __Create__(): "Robot_R01_help": "Robot data storage in orchestrator env", "Robot_R01": {}, "R01_OrchestratorToRobot": {"Test2": "Test2"} + }, + "AgentDict": { # Will be filled when program runs + #("HostNameUpperStr", "UserUpperStr"): { "IsListenBool": True, "QueueList": [] } } }