remove trailing comma in dict(parameters,) (#10711)

* remove trailing comma in dict(parameters,)

* add changelog frag
This commit is contained in:
Alexei Znamensky 2025-08-24 05:13:20 +12:00 committed by GitHub
commit 62fa3e6f2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 28 additions and 20 deletions

View file

@ -0,0 +1,6 @@
minor_changes:
- gitlab_label - minor refactor to improve readability (https://github.com/ansible-collections/community.general/pull/10711).
- gitlab_milestone - minor refactor to improve readability (https://github.com/ansible-collections/community.general/pull/10711).
- ipa_host - minor refactor to improve readability (https://github.com/ansible-collections/community.general/pull/10711).
- lvg_rename - minor refactor to improve readability (https://github.com/ansible-collections/community.general/pull/10711).
- terraform - minor refactor to improve readability (https://github.com/ansible-collections/community.general/pull/10711).

View file

@ -419,7 +419,7 @@ def main():
color=dict(type='str'),
description=dict(type='str'),
priority=dict(type='int'),
new_name=dict(type='str'),)
new_name=dict(type='str'))
),
state=dict(type='str', default="present", choices=["absent", "present"]),
)

View file

@ -414,12 +414,12 @@ def main():
project=dict(type='str'),
group=dict(type='str'),
purge=dict(type='bool', default=False),
milestones=dict(type='list', elements='dict', default=list(),
milestones=dict(type='list', elements='dict', default=[],
options=dict(
title=dict(type='str', required=True),
description=dict(type='str'),
due_date=dict(type='str'),
start_date=dict(type='str'),)
start_date=dict(type='str'))
),
state=dict(type='str', default="present", choices=["absent", "present"]),
)

View file

@ -291,7 +291,8 @@ def ensure(module, client):
def main():
argument_spec = ipa_argument_spec()
argument_spec.update(description=dict(type='str'),
argument_spec.update(
description=dict(type='str'),
fqdn=dict(type='str', required=True, aliases=['name']),
force=dict(type='bool'),
ip_address=dict(type='str'),
@ -303,7 +304,8 @@ def main():
update_dns=dict(type='bool'),
state=dict(type='str', default='present', choices=['present', 'absent', 'enabled', 'disabled']),
random_password=dict(type='bool', no_log=False),
force_creation=dict(type='bool', default=True),)
force_creation=dict(type='bool', default=True)
)
module = AnsibleModule(argument_spec=argument_spec,
supports_check_mode=True)

View file

@ -57,8 +57,8 @@ EXAMPLES = r"""
from ansible.module_utils.basic import AnsibleModule
argument_spec = dict(
vg=dict(type='str', required=True,),
vg_new=dict(type='str', required=True,),
vg=dict(type='str', required=True),
vg_new=dict(type='str', required=True),
)

View file

@ -507,7 +507,7 @@ def main():
state_file=dict(type='path'),
targets=dict(type='list', elements='str', default=[]),
lock=dict(type='bool', default=True),
lock_timeout=dict(type='int',),
lock_timeout=dict(type='int'),
force_init=dict(type='bool', default=False),
backend_config=dict(type='dict'),
backend_config_files=dict(type='list', elements='path'),

View file

@ -29,7 +29,7 @@ class TestDatacenterInfoModule(FactsParamsTest):
def test_should_get_all_datacenters(self):
self.resource.get_all.return_value = {"name": "Data Center Name"}
self.mock_ansible_module.params = dict(config='config.json',)
self.mock_ansible_module.params = dict(config='config.json')
DatacenterInfoModule().run()