From 204bee72ec4c5776b640c51c15e990799f716d9f Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 26 Mar 2008 00:40:07 +0000 Subject: [PATCH 1/1] simplify --- qaapi/qa/tests/plc_uninstall.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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" -- 2.43.0