Skip to content

Commit 31907b4

Browse files
author
shital.rtcamp
committed
Fix bug of secure.py
1 parent bd6a200 commit 31907b4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ee/cli/plugins/secure.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ def secure_auth(self):
7676
@expose(hide=True)
7777
def secure_port(self):
7878
"""This function Secures port"""
79-
while not self.app.pargs.user_input.isdigit():
80-
Log.info(self, "Please Enter valid port number ")
81-
self.app.pargs.user_input = input("EasyEngine admin port [22222]:")
79+
if self.app.pargs.user_input:
80+
while not self.app.pargs.user_input.isdigit():
81+
Log.info(self, "Please Enter valid port number ")
82+
self.app.pargs.user_input = input("EasyEngine "
83+
"admin port [22222]:")
8284
if not self.app.pargs.user_input:
8385
port = input("EasyEngine admin port [22222]:")
8486
if port == "":

0 commit comments

Comments
 (0)