From 0f651baf41a4a5ee0448118bc7ea6a7f2383146b Mon Sep 17 00:00:00 2001 From: Guillaume Martinez Date: Tue, 18 Jun 2019 06:32:43 +0200 Subject: [PATCH] Backport/2.8/57024 (#57846) * Adds visibility parameter to gitlab group creation (#57024) (cherry picked from commit e7bf46d8bc4f001aad2d94c1b61f111c72419424) * Add changelog for backport/2.8/57024 --- .../fragments/57024-adds-visibility-parameter-gitlab-group.yml | 2 ++ lib/ansible/modules/source_control/gitlab_group.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/57024-adds-visibility-parameter-gitlab-group.yml diff --git a/changelogs/fragments/57024-adds-visibility-parameter-gitlab-group.yml b/changelogs/fragments/57024-adds-visibility-parameter-gitlab-group.yml new file mode 100644 index 00000000000..435ce3f388b --- /dev/null +++ b/changelogs/fragments/57024-adds-visibility-parameter-gitlab-group.yml @@ -0,0 +1,2 @@ +minor_changes: + - gitlab_group - Adds missing visibility parameter to gitlab group creation diff --git a/lib/ansible/modules/source_control/gitlab_group.py b/lib/ansible/modules/source_control/gitlab_group.py index d46c9009bf5..45289dd6b90 100644 --- a/lib/ansible/modules/source_control/gitlab_group.py +++ b/lib/ansible/modules/source_control/gitlab_group.py @@ -188,7 +188,8 @@ class GitLabGroup(object): group = self.createGroup({ 'name': name, 'path': options['path'], - 'parent_id': parent_id}) + 'parent_id': parent_id, + 'visibility': options['visibility']}) changed = True else: changed, group = self.updateGroup(self.groupObject, {