From 5c09c646442ceed3319c145be4b192ac72d89c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Wed, 14 Nov 2018 15:28:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Azure=E5=AF=86=E9=92=A5?= =?UTF-8?q?=E5=90=8E=E7=9B=B4=E6=8E=A5=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/util/azure/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/azure/instance.go b/pkg/util/azure/instance.go index b6d0a0a3b9..aff99f53ee 100644 --- a/pkg/util/azure/instance.go +++ b/pkg/util/azure/instance.go @@ -663,7 +663,7 @@ func (region *SRegion) DeployVM(instanceId, name, password, publicKey string, de return nil } if len(publicKey) > 0 { - err = region.resetPublicKey(instanceId, instance.Properties.OsProfile.AdminUsername, publicKey) + return region.resetPublicKey(instanceId, instance.Properties.OsProfile.AdminUsername, publicKey) } return region.resetPassword(instanceId, instance.Properties.OsProfile.AdminUsername, password) }