diff --git a/devstack/shell.py b/devstack/shell.py index 545b53c1..c64a452e 100644 --- a/devstack/shell.py +++ b/devstack/shell.py @@ -240,7 +240,7 @@ 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+)$"): + elif re.match(r"^(\s+)(\S+)(\s+)$", rc): LOG.warning("Whitespace can not start or end a password!") else: break