simplify
authorTony Mack <tmack@cs.princeton.edu>
Wed, 26 Mar 2008 00:38:40 +0000 (00:38 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 26 Mar 2008 00:38:40 +0000 (00:38 +0000)
qaapi/qa/tests/plc_configure.py

index 0ce3ea3..d625720 100644 (file)
@@ -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 = []