Fix for previous commit, indent issue and a missing else

This commit is contained in:
Anton Hvornum 2020-03-16 17:22:42 +01:00
parent cab78fee0a
commit 940869da6c
1 changed files with 2 additions and 1 deletions

View File

@ -564,6 +564,7 @@ def cleanup_args(*positionals, **kwargs):
if not args['unattended']: if not args['unattended']:
if 'input_redirect' in kwargs: if 'input_redirect' in kwargs:
args[key] = kwargs['input_redirect'](key) args[key] = kwargs['input_redirect'](key)
else:
args[key] = input(f'Enter a value for {key}: ') args[key] = input(f'Enter a value for {key}: ')
else: else:
args[key] = random_string(32) args[key] = random_string(32)