From dd5d5e99fe22b11fa9e2878172fd62515fd0b5bd Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sun, 13 Jul 2014 13:34:54 +0200 Subject: [PATCH] fix for calling stuff on the guest side with the right personality --- system/TestPlc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/system/TestPlc.py b/system/TestPlc.py index 01b6ee4..73c5c86 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -275,11 +275,14 @@ class TestPlc: # see e.g. plc_start esp. the version for f14 #command gets run in the plc's vm def host_to_guest(self,command): + vservername=self.vservername + personality=self.options.personality + raw="%(personality)s virsh -c lxc:/// lxc-enter-namespace %(vservername)s"%locals() # f14 still needs some extra help if self.options.fcdistro == 'f14': - raw="virsh -c lxc:/// lxc-enter-namespace %s -- /usr/bin/env PATH=/bin:/sbin:/usr/bin:/usr/sbin %s" %(self.vservername,command) + raw +=" -- /usr/bin/env PATH=/bin:/sbin:/usr/bin:/usr/sbin %(command)s" %locals() else: - raw="virsh -c lxc:/// lxc-enter-namespace %s -- /usr/bin/env %s" %(self.vservername,command) + raw +=" -- /usr/bin/env %(command)s"%locals() return raw # this /vservers thing is legacy... -- 2.43.0