mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-20 09:21:24 -07:00
Improve Ansible 2.9 compatibility (#306)
* Adjust ignore-2.9.txt. * Workaround for load_file_common_arguments's path option (similar to ansible-collections/community.crypto#14). * Add changelog.
This commit is contained in:
parent
5cdb646ab7
commit
85cbc27427
5 changed files with 1402 additions and 3400 deletions
|
@ -233,7 +233,13 @@ def create_jks(module, name, openssl_bin, keytool_bin, keystore_path, password):
|
|||
|
||||
|
||||
def update_jks_perm(module, keystore_path):
|
||||
file_args = module.load_file_common_arguments(module.params, path=keystore_path)
|
||||
try:
|
||||
file_args = module.load_file_common_arguments(module.params, path=keystore_path)
|
||||
except TypeError:
|
||||
# The path argument is only supported in Ansible 2.10+. Fall back to
|
||||
# pre-2.10 behavior for older Ansible versions.
|
||||
module.params['path'] = keystore_path
|
||||
file_args = module.load_file_common_arguments(module.params)
|
||||
module.set_fs_attributes_if_different(file_args, False)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue