mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
* added description parameter to create request
* added changelog fragment
* Update changelogs/fragments/1196-use_description-in-gitlab-group-creation.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* added integration test for description in gitlab_group
* per request in the PR, creating separate task for the description issue in the integration test
* replaced deprecated param names with new names
* description should be optional to keep backward compatibility
* Update plugins/modules/source_control/gitlab/gitlab_group.py
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 7db2ce5be3
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
1b7c49cf56
commit
e09392e867
4 changed files with 43 additions and 9 deletions
|
@ -162,11 +162,15 @@ class GitLabGroup(object):
|
|||
if self.groupObject is None:
|
||||
parent_id = self.getGroupId(parent)
|
||||
|
||||
group = self.createGroup({
|
||||
payload = {
|
||||
'name': name,
|
||||
'path': options['path'],
|
||||
'parent_id': parent_id,
|
||||
'visibility': options['visibility']})
|
||||
'visibility': options['visibility']
|
||||
}
|
||||
if options.get('description'):
|
||||
payload['description'] = options['description']
|
||||
group = self.createGroup(payload)
|
||||
changed = True
|
||||
else:
|
||||
changed, group = self.updateGroup(self.groupObject, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue