From: Tony Mack Date: Wed, 26 Mar 2008 00:40:07 +0000 (+0000) Subject: simplify X-Git-Tag: tests-4.2-4~152 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=204bee72ec4c5776b640c51c15e990799f716d9f;p=tests.git simplify --- diff --git a/qaapi/qa/tests/plc_uninstall.py b/qaapi/qa/tests/plc_uninstall.py index 6d8c161..5bcd772 100644 --- a/qaapi/qa/tests/plc_uninstall.py +++ b/qaapi/qa/tests/plc_uninstall.py @@ -13,12 +13,7 @@ class plc_uninstall(Test): def call(self, plc_name = None, remove_all = False): # 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) command = "/sbin/service plc safestop && rpm -e myplc " if remove_all: command += " && rm -rf /plc/data"