From de45f88830a3d549ca45167876c2a7c75b186acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Fri, 16 Nov 2018 17:16:58 +0800 Subject: [PATCH] =?UTF-8?q?Azure=E4=B8=BB=E6=9C=BA=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=B8=A6=E4=B8=8Aregion=E4=BF=A1=E6=81=AF,=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/util/azure/classic_host.go | 2 +- pkg/util/azure/host.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/util/azure/classic_host.go b/pkg/util/azure/classic_host.go index e932ec8d35..89ddfc3373 100644 --- a/pkg/util/azure/classic_host.go +++ b/pkg/util/azure/classic_host.go @@ -26,7 +26,7 @@ func (self *SClassicHost) GetId() string { } func (self *SClassicHost) GetName() string { - return fmt.Sprintf("%s-classic", self.zone.region.client.subscriptionId) + return fmt.Sprintf("%s/%s-classic", self.zone.region.GetName(), self.zone.region.client.subscriptionId) } func (self *SClassicHost) GetGlobalId() string { diff --git a/pkg/util/azure/host.go b/pkg/util/azure/host.go index 2fe2f279cc..147d5a8dd0 100644 --- a/pkg/util/azure/host.go +++ b/pkg/util/azure/host.go @@ -23,7 +23,7 @@ func (self *SHost) GetId() string { } func (self *SHost) GetName() string { - return fmt.Sprintf("%s", self.zone.region.client.subscriptionId) + return fmt.Sprintf("%s/%s", self.zone.region.GetName(), self.zone.region.client.subscriptionId) } func (self *SHost) GetGlobalId() string {