From 525895b3d3bd61cacb88f4a04ec00e5afc9a4662 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 26 Mar 2008 00:34:40 +0000 Subject: [PATCH] simplify --- qaapi/qa/tests/add_test_data.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/qaapi/qa/tests/add_test_data.py b/qaapi/qa/tests/add_test_data.py index b411816..a842083 100644 --- a/qaapi/qa/tests/add_test_data.py +++ b/qaapi/qa/tests/add_test_data.py @@ -11,17 +11,10 @@ class add_test_data(Test): def call(self, plc_name = None): # Determine which plc to talk to - plc = PLC(self.config) - plcs = getattr(self.config, 'plcs', []) - for p in plcs: - if p['name'] in [plc_name]: - plc.update(p) - plc.config.update_api(plc) - + plc = self.config.get_plc(plc_name) api = plc.config.api auth = plc.config.auth - # Search config for objects that belong to this plc # Any object with 'plc' defined as this plc's name or with # no 'plc' defined will be added -- 2.47.0