Skip to content

Commit

Permalink
Fix for problem with miq_group (find_by_description)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnikasky committed Aug 15, 2017
1 parent 1942e8f commit e809fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def self.seed
roles = MiqUserRole.where("name like 'EvmRole-%'").index_by(&:name)

role_map.each_with_index do |(group_name, role_name), index|
group = groups[group_name] || new(:description => group_name)
group = MiqGroup.where(description: group_name, tenant_id: Tenant.root_tenant).first || new(:description => group_name)
user_role = roles["EvmRole-#{role_name}"]
if user_role.nil?
raise StandardError,
Expand Down

0 comments on commit e809fa5

Please sign in to comment.