From 31907b450807d3bd0314149478e50deada49219f Mon Sep 17 00:00:00 2001 From: "shital.rtcamp" Date: Tue, 3 Feb 2015 15:21:09 +0530 Subject: [PATCH] Fix bug of secure.py --- ee/cli/plugins/secure.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ee/cli/plugins/secure.py b/ee/cli/plugins/secure.py index 9deb235c..359d8513 100644 --- a/ee/cli/plugins/secure.py +++ b/ee/cli/plugins/secure.py @@ -76,9 +76,11 @@ class EESecureController(CementBaseController): @expose(hide=True) def secure_port(self): """This function Secures port""" - while not self.app.pargs.user_input.isdigit(): - Log.info(self, "Please Enter valid port number ") - self.app.pargs.user_input = input("EasyEngine admin port [22222]:") + if self.app.pargs.user_input: + while not self.app.pargs.user_input.isdigit(): + Log.info(self, "Please Enter valid port number ") + self.app.pargs.user_input = input("EasyEngine " + "admin port [22222]:") if not self.app.pargs.user_input: port = input("EasyEngine admin port [22222]:") if port == "":