SIENTIAPDE-1199
Refactor OPC class to initialize success_count within the loop for better scope management
This commit is contained in:
@@ -179,10 +179,10 @@ class OPC(BaseActivity):
|
||||
|
||||
success = True
|
||||
|
||||
success_count = 0
|
||||
|
||||
for server_id, config in opc_output_config.items():
|
||||
|
||||
success_count = 0
|
||||
|
||||
if not self.validate_server(server_id, metadata):
|
||||
success = False
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user