Commit 50518073723d80ab1efee96bce218f5b28af82a9
1 parent
57efc389
Exists in
staging
and in
4 other branches
serpro_integration: fix group search
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/serpro_integration/lib/serpro_integration_plugin/gitlab_integration.rb
@@ -10,7 +10,7 @@ class SerproIntegrationPlugin::GitlabIntegration | @@ -10,7 +10,7 @@ class SerproIntegrationPlugin::GitlabIntegration | ||
10 | 10 | ||
11 | def create_group(group_name) | 11 | def create_group(group_name) |
12 | #FIXME find group by name | 12 | #FIXME find group by name |
13 | - group = @client.groups.select {|group| group.name == group_name}.first | 13 | + group = @client.groups(:search => group_name).select {|group| group.name == group_name}.first |
14 | group ||= @client.create_group(group_name, group_name) | 14 | group ||= @client.create_group(group_name, group_name) |
15 | @group = group | 15 | @group = group |
16 | end | 16 | end |