mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-27 05:43:09 +00:00
* fix: require_two_factor_authentication default=false
* chore: add changelog fragment
* docs: require_two_factor_authentication default value
* fix: don't send require_two_factor_authentication null value
* chore: fix changelog
(cherry picked from commit 1bb2ff5128)
Co-authored-by: Chris Frage <git@sh0shin.org>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- gitlab_group - avoid passing wrong value for ``require_two_factor_authentication`` on creation when the option has not been specified (https://github.com/ansible-collections/community.general/pull/3453).
|
||||
@@ -206,10 +206,11 @@ class GitLabGroup(object):
|
||||
'project_creation_level': options['project_creation_level'],
|
||||
'auto_devops_enabled': options['auto_devops_enabled'],
|
||||
'subgroup_creation_level': options['subgroup_creation_level'],
|
||||
'require_two_factor_authentication': options['require_two_factor_authentication'],
|
||||
}
|
||||
if options.get('description'):
|
||||
payload['description'] = options['description']
|
||||
if options.get('require_two_factor_authentication'):
|
||||
payload['require_two_factor_authentication'] = options['require_two_factor_authentication']
|
||||
group = self.createGroup(payload)
|
||||
changed = True
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user