ibm_is_virtual_network_interface_floating_ip: inconsistent behaviour returns null instead of error #5757
Labels
service/Resource Management
Issues related to Resource Manager or Resource controller Issues
service/VPC Infrastructure
Issues related to the VPC Infrastructure
Community Note
Terraform CLI and Terraform IBM Provider Version
Terraform 1.5.5 with all Terraform Providers since this data resource was added
Affected Resource(s)
ibm_is_virtual_network_interface_floating_ip
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Return Code 0, without stderr, and all data fields incorrectly return as null:
Expected Behavior
Consistency with all other data source behaviour, such as:
data "ibm_resource_group"
prints to stderr[ERROR] Given Resource Group is not found in the account
data "ibm_is_ssh_key"
prints to stderr[ERROR] No SSH Key found with name NAME_HERE
data "ibm_is_vpc"
prints to stderr[ERROR] No VPC found with name NAME_HERE
data "ibm_is_subnet"
prints to stderr[ERROR] No subnet found with name (NAME_HERE)
In this case it should be:
stderr
[ERROR] No Virtual Network Interface to Floating IP attachment found for the resource IDs
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: