updated to use key params for admin parts

This commit is contained in:
Joshua Harlow 2012-03-07 11:09:33 -08:00
parent b0a8e6a751
commit a6731ffdbc

View File

@ -240,7 +240,9 @@ def prompt_password(pw_prompt):
break
if re.match(r"^(\s+)$", rc):
LOG.warning("Whitespace not allowed as a password!")
elif re.match(r"^(\s+)(\S+)(\s+)$", rc):
elif re.match(r"^(\s+)(\S+)(\s+)$", rc) or \
re.match(r"^(\S+)(\s+)$", rc) or \
re.match(r"^(\s+)(\S+)$", rc):
LOG.warning("Whitespace can not start or end a password!")
else:
break