From 99d36aaa2d05158e8f593e124b5e7f5ef6e7fdb7 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 7 Oct 2019 13:11:38 +0200 Subject: [PATCH] another fix for secure --- wo/cli/plugins/secure.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/secure.py b/wo/cli/plugins/secure.py index e1c6797..ceead3f 100644 --- a/wo/cli/plugins/secure.py +++ b/wo/cli/plugins/secure.py @@ -108,11 +108,12 @@ class WOSecureController(CementBaseController): Log.info(self, "Please enter a valid port number ") pargs.user_input = input("WordOps " "admin port [22222]:") - if not pargs.user_input: + else: port = input("WordOps admin port [22222]:") if port == "": port = 22222 - while (not port.isdigit()) and (port != "") and (not port < 65536): + while ((not port.isdigit()) and (not port != "") and + (not port < 65536)): Log.info(self, "Please Enter valid port number :") port = input("WordOps admin port [22222]:") pargs.user_input = port