Commit 51a58d0ae2c87bd9f8c29a4584e4fcd3c85a2061

Authored by Victor Costa
1 parent 154ae20e
Exists in master

serpro_integration: fix group search

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
... ...