diff --git a/ibm/resource_ibm_is_ike_policy_test.go b/ibm/resource_ibm_is_ike_policy_test.go index 1f50b03739..cca474f327 100644 --- a/ibm/resource_ibm_is_ike_policy_test.go +++ b/ibm/resource_ibm_is_ike_policy_test.go @@ -96,7 +96,7 @@ func checkIKEPolicyDestroy(s *terraform.State) error { func testAccCheckIBMISIKEPolicyExists(n, policy string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_is_image_test.go b/ibm/resource_ibm_is_image_test.go index af863b4b6e..c68023488b 100644 --- a/ibm/resource_ibm_is_image_test.go +++ b/ibm/resource_ibm_is_image_test.go @@ -94,7 +94,7 @@ func checkImageDestroy(s *terraform.State) error { func testAccCheckIBMISImageExists(n, image string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_is_ipsec_policy_test.go b/ibm/resource_ibm_is_ipsec_policy_test.go index fc98d178d3..67dbaf4419 100644 --- a/ibm/resource_ibm_is_ipsec_policy_test.go +++ b/ibm/resource_ibm_is_ipsec_policy_test.go @@ -91,7 +91,7 @@ func checkPolicyDestroy(s *terraform.State) error { func testAccCheckIBMISIpSecPolicyExists(n, policy string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_is_networkacls_test.go b/ibm/resource_ibm_is_networkacls_test.go index b7efbb457d..14618f6755 100644 --- a/ibm/resource_ibm_is_networkacls_test.go +++ b/ibm/resource_ibm_is_networkacls_test.go @@ -96,7 +96,7 @@ func checkNetworkACLDestroy(s *terraform.State) error { func testAccCheckIBMISNetworkACLExists(n, nwACL string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_is_public_gateway_test.go b/ibm/resource_ibm_is_public_gateway_test.go index 91fbf9dbd5..858fab9755 100644 --- a/ibm/resource_ibm_is_public_gateway_test.go +++ b/ibm/resource_ibm_is_public_gateway_test.go @@ -95,7 +95,7 @@ func testAccCheckIBMISPublicGatewayDestroy(s *terraform.State) error { func testAccCheckIBMISPublicGatewayExists(n, publicgw string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_is_security_group_rule_test.go b/ibm/resource_ibm_is_security_group_rule_test.go index bdfb9f85f0..6a7a078972 100644 --- a/ibm/resource_ibm_is_security_group_rule_test.go +++ b/ibm/resource_ibm_is_security_group_rule_test.go @@ -88,7 +88,7 @@ func testAccCheckIBMISSecurityGroupRuleDestroy(s *terraform.State) error { func testAccCheckIBMISSecurityGroupRuleExists(n, securityGroupRuleID string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_is_security_group_test.go b/ibm/resource_ibm_is_security_group_test.go index f07a6c26b0..ac0a2938e1 100644 --- a/ibm/resource_ibm_is_security_group_test.go +++ b/ibm/resource_ibm_is_security_group_test.go @@ -92,7 +92,7 @@ func testAccCheckIBMISSecurityGroupDestroy(s *terraform.State) error { func testAccCheckIBMISSecurityGroupExists(n, securityGroupID string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_is_ssh_key_test.go b/ibm/resource_ibm_is_ssh_key_test.go index 68a9f0d2ea..f94ea99a23 100644 --- a/ibm/resource_ibm_is_ssh_key_test.go +++ b/ibm/resource_ibm_is_ssh_key_test.go @@ -79,7 +79,7 @@ func checkKeyDestroy(s *terraform.State) error { func testAccCheckIBMISKeyExists(n, keyID string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_is_subnet_network_acl_attachment_test.go b/ibm/resource_ibm_is_subnet_network_acl_attachment_test.go index 07071ead5c..e226e0d6db 100644 --- a/ibm/resource_ibm_is_subnet_network_acl_attachment_test.go +++ b/ibm/resource_ibm_is_subnet_network_acl_attachment_test.go @@ -56,7 +56,7 @@ func checkSubnetNetworkACLAttachmentDestroy(s *terraform.State) error { func testAccCheckIBMISSubnetNetworkACLAttachmentExists(n, subnetNwACL string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_pi_image_test.go b/ibm/resource_ibm_pi_image_test.go index 73ff58e831..936089b636 100644 --- a/ibm/resource_ibm_pi_image_test.go +++ b/ibm/resource_ibm_pi_image_test.go @@ -57,7 +57,7 @@ func testAccCheckIBMPIImageDestroy(s *terraform.State) error { } func testAccCheckIBMPIImageExists(n string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_pi_instance_test.go b/ibm/resource_ibm_pi_instance_test.go index 695301feef..b828d78d09 100644 --- a/ibm/resource_ibm_pi_instance_test.go +++ b/ibm/resource_ibm_pi_instance_test.go @@ -57,7 +57,7 @@ func testAccCheckIBMPIInstanceDestroy(s *terraform.State) error { } func testAccCheckIBMPIInstanceExists(n string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_pi_key_test.go b/ibm/resource_ibm_pi_key_test.go index e9d9be5fa4..3e3fd61290 100644 --- a/ibm/resource_ibm_pi_key_test.go +++ b/ibm/resource_ibm_pi_key_test.go @@ -60,7 +60,7 @@ func testAccCheckIBMPIKeyDestroy(s *terraform.State) error { } func testAccCheckIBMPIKeyExists(n string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_pi_network_port_attach_test.go b/ibm/resource_ibm_pi_network_port_attach_test.go index ef514a02d4..49d77568aa 100644 --- a/ibm/resource_ibm_pi_network_port_attach_test.go +++ b/ibm/resource_ibm_pi_network_port_attach_test.go @@ -57,7 +57,7 @@ func testAccCheckIBMPINetworkPortAttachDestroy(s *terraform.State) error { } func testAccCheckIBMPINetworkPortAttachExists(n string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_pi_network_port_test.go b/ibm/resource_ibm_pi_network_port_test.go index 568c7b5b90..10e1083fef 100644 --- a/ibm/resource_ibm_pi_network_port_test.go +++ b/ibm/resource_ibm_pi_network_port_test.go @@ -56,7 +56,7 @@ func testAccCheckIBMPINetworkPortDestroy(s *terraform.State) error { } func testAccCheckIBMPINetworkPortExists(n string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_pi_network_test.go b/ibm/resource_ibm_pi_network_test.go index e5a4d04512..4b168eb4ce 100644 --- a/ibm/resource_ibm_pi_network_test.go +++ b/ibm/resource_ibm_pi_network_test.go @@ -56,7 +56,7 @@ func testAccCheckIBMPINetworkDestroy(s *terraform.State) error { } func testAccCheckIBMPINetworkExists(n string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_pi_snapshot_test.go b/ibm/resource_ibm_pi_snapshot_test.go index 3f1ba3f251..acd1dfe1fe 100644 --- a/ibm/resource_ibm_pi_snapshot_test.go +++ b/ibm/resource_ibm_pi_snapshot_test.go @@ -57,7 +57,7 @@ func testAccCheckIBMPIInstanceSnapshotDestroy(s *terraform.State) error { } func testAccCheckIBMPIInstanceSnapshotExists(n string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok { diff --git a/ibm/resource_ibm_pi_volume_test.go b/ibm/resource_ibm_pi_volume_test.go index 44f0909d71..f9b4cf443f 100644 --- a/ibm/resource_ibm_pi_volume_test.go +++ b/ibm/resource_ibm_pi_volume_test.go @@ -58,7 +58,7 @@ func testAccCheckIBMPIVolumeDestroy(s *terraform.State) error { } func testAccCheckIBMPIVolumeExists(n string) resource.TestCheckFunc { return func(s *terraform.State) error { - fmt.Println("siv ", s.RootModule().Resources) + rs, ok := s.RootModule().Resources[n] if !ok {