From 0aaee0a97f5e26903474da10538e464a9f32dba7 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 22 Feb 2018 13:49:43 -0500 Subject: [PATCH] Don't return None on mismatched interactive passwords This will cause the command to continue with no password set at all which is not what we want. We want to loop forever until the passwords match or the user gives up and types ^D or ^C. https://pagure.io/freeipa/issue/7383 Signed-off-by: Rob Crittenden Reviewed-By: Stanislav Laznicka Reviewed-By: Christian Heimes --- ipalib/cli.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ipalib/cli.py b/ipalib/cli.py index 2da641046..3fde58197 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -627,7 +627,6 @@ class textui(backend.Backend): return pw1 else: self.print_error(_('Passwords do not match!')) - return None else: return self.decode(sys.stdin.readline().strip())