From: Tony Mack Date: Wed, 26 Mar 2008 00:40:19 +0000 (+0000) Subject: simplify X-Git-Tag: tests-4.2-4~151 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1b07c67f811d2ce38b1195b3e6f4c29614f2ba44;p=tests.git simplify --- diff --git a/qaapi/qa/tests/plc_stop.py b/qaapi/qa/tests/plc_stop.py index ff5bb9c..58ce64b 100644 --- a/qaapi/qa/tests/plc_stop.py +++ b/qaapi/qa/tests/plc_stop.py @@ -14,12 +14,7 @@ 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)