From d6771f56dac05d240b3971f02d146a9ebc0b7f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Fri, 28 Dec 2018 15:22:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=87=BA=E7=8E=B0=E5=A4=9A?= =?UTF-8?q?=E4=B8=AAexternalID=E7=9B=B8=E5=90=8C=E7=9A=84=E5=BF=AB?= =?UTF-8?q?=E7=85=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/snapshots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compute/models/snapshots.go b/pkg/compute/models/snapshots.go index 94085c7074..a81e293a3c 100644 --- a/pkg/compute/models/snapshots.go +++ b/pkg/compute/models/snapshots.go @@ -479,7 +479,7 @@ func (manager *SSnapshotManager) getProviderSnapshotsByRegion(region *SCloudregi return nil, fmt.Errorf("Region is nil or provider is nil") } snapshots := make([]SSnapshot, 0) - q := manager.Query().Equals("cloudregion_id", region.Id).Equals("manager_id", provider.Id).NotEquals("status", SNAPSHOT_UNKNOWN) + q := manager.Query().Equals("cloudregion_id", region.Id).Equals("manager_id", provider.Id) err := db.FetchModelObjects(manager, q, &snapshots) if err != nil { return nil, err