From d3cc8ab2eaaf89e77754552043841a641ae4d9c5 Mon Sep 17 00:00:00 2001 From: Jason Zhang Date: Wed, 27 Jan 2021 14:36:11 +0800 Subject: [PATCH] No err will be returned when 0 instance are found in data_source gaussdb_mysql_instances --- .../data_source_huaweicloud_gaussdb_mysql_instances.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/huaweicloud/data_source_huaweicloud_gaussdb_mysql_instances.go b/huaweicloud/data_source_huaweicloud_gaussdb_mysql_instances.go index 91714ea6dc..d30b44e4db 100644 --- a/huaweicloud/data_source_huaweicloud_gaussdb_mysql_instances.go +++ b/huaweicloud/data_source_huaweicloud_gaussdb_mysql_instances.go @@ -206,11 +206,6 @@ func dataSourceGaussDBMysqlInstancesRead(d *schema.ResourceData, meta interface{ return fmt.Errorf("Unable to retrieve instances: %s", err) } - if allInstances.TotalCount < 1 { - return fmt.Errorf("Your query returned no results. " + - "Please change your search criteria and try again.") - } - var instancesToSet []map[string]interface{} var instancesIds []string