From 795d6180b5a640260b643dadaf223dba1895fba8 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 26 Mar 2008 00:38:40 +0000 Subject: [PATCH] simplify --- qaapi/qa/tests/plc_configure.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/qaapi/qa/tests/plc_configure.py b/qaapi/qa/tests/plc_configure.py index 0ce3ea3..d625720 100644 --- a/qaapi/qa/tests/plc_configure.py +++ b/qaapi/qa/tests/plc_configure.py @@ -14,12 +14,7 @@ class plc_configure(Test): def call(self, plc_name, plc_config_option=None, plc_config_value=None): # Get plc configuration from config - plc = PLC(self.config) - plcs = getattr(self.config, 'plcs', []) - for p in plcs: - if p['name'] in [plc_name]: - plc.update(p) - + plc = self.config.get_plc(plc_name) services = ['API', 'DB', 'WWW', 'BOOT'] plc_options = [] -- 2.43.0