oops
[tests.git] / qaapi / qa / tests / plc_stop.py
index ff5bb9c..f0c0b48 100644 (file)
@@ -14,20 +14,15 @@ class plc_stop(Test):
     def call(self, plc_name):
        
         # 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)
        command = " /sbin/service plc stop "
        if self.config.verbose:
-           utils.header(command)
+           utils.header(command, logfile = self.config.logfile)
        
        (status, output) = plc.commands(command)
 
        if self.config.verbose:
-           utils.header(output)
+           utils.header(output, logfile = self.config.logfile)
 
        return 1