diff --git a/cloudamqp/data_source_cloudamqp_nodes.go b/cloudamqp/data_source_cloudamqp_nodes.go index ed701f10..10dc4478 100644 --- a/cloudamqp/data_source_cloudamqp_nodes.go +++ b/cloudamqp/data_source_cloudamqp_nodes.go @@ -59,10 +59,14 @@ func dataSourceNodes() *schema.Resource { Type: schema.TypeInt, Computed: true, }, - "availability_zone": { + "hostname_internal": { Type: schema.TypeString, Computed: true, }, + "availability_zone": { + Type: schema.TypeString, + Computed: true, + }, }, }, }, @@ -113,7 +117,8 @@ func validateNodesSchemaAttribute(key string) bool { "rmq_version", "disk_size", "additional_disk_size", - "availability_zone": + "hostname_internal", + "availability_zone": return true } return false diff --git a/docs/data-sources/nodes.md b/docs/data-sources/nodes.md index 5fa3b1ef..6b2d8eca 100644 --- a/docs/data-sources/nodes.md +++ b/docs/data-sources/nodes.md @@ -33,6 +33,7 @@ ___ The `nodes` block consist of * `hostname` - External hostname assigned to the node. +* `hostname_internal` - Internal hostname assigned to the node. * `name` - Name of the node. * `running` - Is the node running? * `rabbitmq_version` - Currently configured Rabbit MQ version on the node.