From e7182251328e66be674528e718f73b2b7a72422a Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 7 Feb 2008 15:44:51 +0000 Subject: [PATCH] correct a glitch, we need to check the right private key file and not the directory itself --- system/TestSlice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/TestSlice.py b/system/TestSlice.py index f4eb9c5..27a0ccc 100644 --- a/system/TestSlice.py +++ b/system/TestSlice.py @@ -73,7 +73,7 @@ class TestSlice: found=True #create dir in plc root image remote_privatekey="/root/keys/%s.rsa"%keyname - if not os.path.isdir("/plc/root/data/root/keys"): + if not os.path.isfile(remote_privatekey): self.test_plc.run_in_guest("mkdir /root/keys" ) self.test_plc.copy_in_guest(privatekey,remote_privatekey,True) -- 2.47.0