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 6a6eff0be2..4dc27e9b92 100644 --- a/plugins/modules/git_config.py +++ b/plugins/modules/git_config.py @@ -171,10 +171,10 @@ def main(): name=dict(type='str'), 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(), ), mutually_exclusive=[['list_all', 'name'], ['list_all', 'value'], ['list_all', 'state']], required_if=[