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,7 +564,8 @@ def cleanup_args(*positionals, **kwargs):
if not args['unattended']:
if 'input_redirect' in kwargs:
args[key] = kwargs['input_redirect'](key)
args[key] = input(f'Enter a value for {key}: ')
else:
args[key] = input(f'Enter a value for {key}: ')
else:
args[key] = random_string(32)
elif args[key] == '<RND_STR>': args[key] = random_string(32)