Skip to content

Commit

Permalink
Merge pull request #19272 from lpichler/make_unique_description_for_t…
Browse files Browse the repository at this point in the history
…enant_groups

Make description unique for tenant groups in MiqGroup
  • Loading branch information
kbrock authored Sep 11, 2019
2 parents e1e730f + 27618dc commit 6a387a9
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 @@ -234,7 +234,7 @@ def self.regional_groups(group)
end

def self.create_tenant_group(tenant)
tenant_full_name = (tenant.ancestors.map(&:name) + [tenant.name]).join("/")
tenant_full_name = (tenant.ancestors.map(&:name) + [tenant.name] + [tenant.id.to_s]).join("/")

create_with(
:description => "Tenant #{tenant_full_name} access"
Expand Down

0 comments on commit 6a387a9

Please sign in to comment.