diff --git a/ibm/service/vpc/resource_ibm_is_subnet.go b/ibm/service/vpc/resource_ibm_is_subnet.go index d7cda9b0e3..e8f89d0345 100644 --- a/ibm/service/vpc/resource_ibm_is_subnet.go +++ b/ibm/service/vpc/resource_ibm_is_subnet.go @@ -668,6 +668,7 @@ func subnetDelete(d *schema.ResourceData, meta interface{}, id string) error { response, err = sess.DeleteSubnet(deleteSubnetOptions) if err != nil { if response != nil && response.StatusCode == 409 { + log.Printf("[DEBUG] Delete subnet response status code: 409 conflict, provider will try again. %s", err) _, err = isWaitForSubnetDeleteRetry(sess, d.Id(), d.Timeout(schema.TimeoutDelete)) if err != nil { return fmt.Errorf("[ERROR] Error Deleting Subnet : %s", err) @@ -685,7 +686,7 @@ func subnetDelete(d *schema.ResourceData, meta interface{}, id string) error { } func isWaitForSubnetDeleteRetry(vpcClient *vpcv1.VpcV1, id string, timeout time.Duration) (interface{}, error) { - log.Printf("Retrying subnet (%s) delete", id) + log.Printf("[DEBUG] Retrying subnet (%s) delete", id) stateConf := &resource.StateChangeConf{ Pending: []string{isSubnetInUse}, Target: []string{isSubnetDeleting, isSubnetDeleted, ""}, @@ -693,7 +694,7 @@ func isWaitForSubnetDeleteRetry(vpcClient *vpcv1.VpcV1, id string, timeout time. deleteSubnetOptions := &vpcv1.DeleteSubnetOptions{ ID: &id, } - log.Printf("Retrying subnet (%s) delete", id) + log.Printf("[DEBUG] Retrying subnet (%s) delete", id) response, err := vpcClient.DeleteSubnet(deleteSubnetOptions) if err != nil { if response != nil && response.StatusCode == 409 {