From: Tony Mack Date: Wed, 26 Mar 2008 00:38:40 +0000 (+0000) Subject: simplify X-Git-Tag: tests-4.2-4~155 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=795d6180b5a640260b643dadaf223dba1895fba8;p=tests.git simplify --- 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 = []