Skip to content

Commit

Permalink
Ask hostname until it is not 'localhost' descibed by issue #100
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Aug 6, 2018
1 parent 52088ef commit 765a862
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions setup.py
Expand Up @@ -2224,10 +2224,16 @@ def promptForProperties(self):
except:
self.logIt("No detected hostname", True)
self.logIt(traceback.format_exc(), True)
if detectedHostname:
self.hostname = self.getPrompt("Enter hostname", detectedHostname)
else:
self.hostname = self.getPrompt("Enter hostname")
while True:
if detectedHostname:
self.hostname = self.getPrompt("Enter hostname", detectedHostname)
else:
self.hostname = self.getPrompt("Enter hostname")

if self.hostname != 'localhost':
break
else:
print "Hostname can't be \033[;1mlocalhost\033[0;0m"

# Get city and state|province code
self.city = self.getPrompt("Enter your city or locality")
Expand Down

0 comments on commit 765a862

Please sign in to comment.