F5Networks / terraform-provider-bigip

Terraform resources that can configure F5 BIG-IP products
https://registry.terraform.io/providers/F5Networks/bigip/latest/docs
Mozilla Public License 2.0
105 stars 119 forks source link

description attribute missing from data source bigip_ltm_node #991

Closed jskirde closed 5 months ago

jskirde commented 5 months ago

Environment

Summary

The data source bigip_ltm_node is missing the description.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Provide terraform resource config which you are facing trouble along with the output of it.
    
    data "bigip_ltm_node" "this" {
    name      = "this"
    partition = "Common"
    }

output "bigip-ltm-node" { value = data.bigip_ltm_node.this }

This produces the output lacking the description... instead, the description is listed as:

"description" = tostring(null)


2. To get to know more about the issue, provide terraform debug logs
N/A

3. To capture debug logs, export TF_LOG variable with debug ( export TF_LOG= DEBUG ) before 
  runnning terraform apply/plan
N/A
4. As3/DO json along with the resource config( for AS3/DO resource issues )

### Expected Behavior
Expected the node description to be output in the data source.

### Actual Behavior
This produces the output lacking the description... instead, the description is listed as:

"description" = tostring(null)



Suspect this attribute just needs to be set here:
https://github.com/F5Networks/terraform-provider-bigip/blob/master/bigip/datasource_bigip_ltm_node.go#L150

It appears this attribute is available in the API https://clouddocs.f5.com/api/icontrol-rest/APIRef_tm_ltm_node.html