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 | 10 | |
| 11 | 11 | def create_group(group_name) |
| 12 | 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 | 14 | group ||= @client.create_group(group_name, group_name) |
| 15 | 15 | @group = group |
| 16 | 16 | end | ... | ... |