mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-12 20:00:58 +00:00
[PR #11235/fb2f34ba backport][stable-12] Stop re-defining the argument spec in unit tests (#11239)
Stop re-defining the argument spec in unit tests (#11235)
* Stop re-defining the argument spec in unit tests.
* Shut up linter.
(cherry picked from commit fb2f34ba85)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -510,7 +510,7 @@ def create_file(content):
|
||||
return tmpfile
|
||||
|
||||
|
||||
def main():
|
||||
def create_module() -> AnsibleModule:
|
||||
choose_between = (["certificate", "certificate_path"], ["private_key", "private_key_path"])
|
||||
|
||||
module = AnsibleModule(
|
||||
@@ -533,6 +533,11 @@ def main():
|
||||
add_file_common_args=True,
|
||||
)
|
||||
module.run_command_environ_update = dict(LANG="C", LC_ALL="C", LC_MESSAGES="C")
|
||||
return module
|
||||
|
||||
|
||||
def main():
|
||||
module = create_module()
|
||||
|
||||
result = dict()
|
||||
jks = JavaKeystore(module)
|
||||
|
||||
Reference in New Issue
Block a user