From 5151ef17d1eb59887af99c24adb2b067beb4e0d1 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 26 Mar 2008 00:40:44 +0000 Subject: [PATCH] simplify --- qaapi/qa/tests/plc_install.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/qaapi/qa/tests/plc_install.py b/qaapi/qa/tests/plc_install.py index 9283eff..cc0a08d 100644 --- a/qaapi/qa/tests/plc_install.py +++ b/qaapi/qa/tests/plc_install.py @@ -14,13 +14,7 @@ class plc_install(Test): def call(self, plc_name, url=None): # Get plc qa 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) url_path = self.config.path # Determine url -- 2.45.2