From 27618dc1ab1850236124f05182ea0b55908d1520 Mon Sep 17 00:00:00 2001 From: Libor Pichler Date: Mon, 9 Sep 2019 16:06:29 +0200 Subject: [PATCH] Make description unique for tenant groups in MiqGroup --- app/models/miq_group.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/miq_group.rb b/app/models/miq_group.rb index 3713a094469..5dac10a6fda 100644 --- a/app/models/miq_group.rb +++ b/app/models/miq_group.rb @@ -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"