From: Ondrej Lichtner <olichtne(a)redhat.com>
Fix a isfile check when looking for a private key.
Patch was provided by Jan Tluka.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/Wizard.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lnst/Controller/Wizard.py b/lnst/Controller/Wizard.py
index fca572a..b7ec246 100644
--- a/lnst/Controller/Wizard.py
+++ b/lnst/Controller/Wizard.py
@@ -567,13 +567,13 @@ class Wizard:
break
while True:
privkey = raw_input("Enter path to Ctl private key: ")
- if privkey == "" or os.path.isfile(privkey):
+ if privkey == "" or not os.path.isfile(privkey):
sys.stderr.write("Invalid path to private key.")
continue
break
while True:
srv_pubkey_path = raw_input("Enter path to Slave public key:
")
- if srv_pubkey_path == "" or os.path.isfile(srv_pubkey_path):
+ if srv_pubkey_path == "" or not
os.path.isfile(srv_pubkey_path):
sys.stderr.write("Invalid path to public key.")
continue
break
--
2.7.2