uninstall for chroot is broken
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 1 Feb 2008 09:37:25 +0000 (09:37 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 1 Feb 2008 09:37:25 +0000 (09:37 +0000)
system/TestPlc.py

index 9c352ef..3e4a169 100644 (file)
@@ -131,9 +131,12 @@ class TestPlc:
     def uninstall(self,options):
         # if there's a chroot-based myplc running, and then a native-based myplc is being deployed
         # it sounds safer to have the former uninstalled too
-        # so let's call both methods uncondionnally
-        self.uninstall_vserver(options)
-        self.uninstall_chroot(options)
+        # now the vserver method cannot be invoked for chroot instances as vservername is required
+        if self.vserver:
+            self.uninstall_vserver(options)
+            self.uninstall_chroot(options)
+        else:
+            self.uninstall_chroot(options)
         return True
 
     ### install