Fix ec2_win_password to allow blank key_passphrase (#28791)
This commit is contained in:
parent
057eec94ee
commit
74f950936a
1 changed files with 4 additions and 1 deletions
|
@ -133,7 +133,10 @@ def main():
|
|||
|
||||
instance_id = module.params.get('instance_id')
|
||||
key_file = module.params.get('key_file')
|
||||
b_key_passphrase = to_bytes(module.params.get('key_passphrase'), errors='surrogate_or_strict')
|
||||
if module.params.get('key_passphrase') is None:
|
||||
b_key_passphrase = None
|
||||
else:
|
||||
b_key_passphrase = to_bytes(module.params.get('key_passphrase'), errors='surrogate_or_strict')
|
||||
wait = module.params.get('wait')
|
||||
wait_timeout = int(module.params.get('wait_timeout'))
|
||||
|
||||
|
|
Loading…
Reference in a new issue