1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-29 08:27:34 +00:00

git_config: remove required=false from arg spec (#10177)

* git_config: remove required=false from arg spec

* add changelog frag
This commit is contained in:
Alexei Znamensky 2025-05-28 09:17:35 +12:00 committed by GitHub
parent a249996f91
commit 35d736f78b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- git_config - remove redundant ``required=False`` from ``argument_spec`` (https://github.com/ansible-collections/community.general/pull/10177).

View file

@ -149,10 +149,10 @@ def main():
name=dict(type='str', required=True),
repo=dict(type='path'),
file=dict(type='path'),
add_mode=dict(required=False, type='str', default='replace-all', choices=['add', 'replace-all']),
scope=dict(required=False, type='str', choices=['file', 'local', 'global', 'system']),
state=dict(required=False, type='str', default='present', choices=['present', 'absent']),
value=dict(required=False),
add_mode=dict(type='str', default='replace-all', choices=['add', 'replace-all']),
scope=dict(type='str', choices=['file', 'local', 'global', 'system']),
state=dict(type='str', default='present', choices=['present', 'absent']),
value=dict(),
),
required_if=[
('scope', 'local', ['repo']),