diff --git a/changelogs/fragments/10177-git-config-required.yml b/changelogs/fragments/10177-git-config-required.yml new file mode 100644 index 0000000000..a6d7a2f50d --- /dev/null +++ b/changelogs/fragments/10177-git-config-required.yml @@ -0,0 +1,2 @@ +minor_changes: + - git_config - remove redundant ``required=False`` from ``argument_spec`` (https://github.com/ansible-collections/community.general/pull/10177). diff --git a/plugins/modules/git_config.py b/plugins/modules/git_config.py index fcc56df7ff..93ca6265b9 100644 --- a/plugins/modules/git_config.py +++ b/plugins/modules/git_config.py @@ -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']),