SIENTIAPDE-1199

Refactor OPC class to initialize success_count within the loop for better scope management
This commit is contained in:
vitor-aignosi
2025-08-21 09:04:35 -03:00
parent a3b642dbef
commit baf52c4a16

View File

@@ -179,10 +179,10 @@ class OPC(BaseActivity):
success = True success = True
success_count = 0
for server_id, config in opc_output_config.items(): for server_id, config in opc_output_config.items():
success_count = 0
if not self.validate_server(server_id, metadata): if not self.validate_server(server_id, metadata):
success = False success = False
continue continue