Skip to content

Commit

Permalink
crypto: Fix incorrect type for privatekey_passphrase (ansible#36868)
Browse files Browse the repository at this point in the history
Fix incorrect type for privatekey_passphrase path -> str
  • Loading branch information
Spredzy authored and mscherer committed Feb 28, 2018
1 parent 41c066e commit 6633eaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ansible/modules/crypto/openssl_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def main():

# General properties of a certificate
privatekey_path=dict(type='path'),
privatekey_passphrase=dict(type='path', no_log=True),
privatekey_passphrase=dict(type='str', no_log=True),
signature_algorithms=dict(type='list'),
subject=dict(type='dict'),
subject_strict=dict(type='bool', default=False),
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/crypto/openssl_publickey.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def main():
path=dict(required=True, type='path'),
privatekey_path=dict(type='path'),
format=dict(type='str', choices=['PEM', 'OpenSSH'], default='PEM'),
privatekey_passphrase=dict(type='path', no_log=True),
privatekey_passphrase=dict(type='str', no_log=True),
),
supports_check_mode=True,
add_file_common_args=True,
Expand Down

0 comments on commit 6633eaa

Please sign in to comment.