From 8cc586bf2a8708002eaf9ec082df11d38004b6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Wed, 2 Jan 2019 14:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/hosts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/compute/models/hosts.go b/pkg/compute/models/hosts.go index f7da3f5e9a..5b6b1bf0bc 100644 --- a/pkg/compute/models/hosts.go +++ b/pkg/compute/models/hosts.go @@ -1441,10 +1441,10 @@ func (self *SHost) SyncHostStorages(ctx context.Context, userCred mcclient.Token if err != nil { syncResult.AddError(err) } else { + localStorages = append(localStorages, *local) + remoteStorages = append(remoteStorages, added[i]) syncResult.Add() } - localStorages = append(localStorages, *local) - remoteStorages = append(remoteStorages, added[i]) } return localStorages, remoteStorages, syncResult }