-
Notifications
You must be signed in to change notification settings - Fork 33
Output issue with resource_configuration #71
Comments
Hi @supernini If you only have one resource_configuration, try the following
Think the issue is due to the fact the resource_configuration is an array which needs to be treated differently |
Thanks @hobovirtual, but i've got the same error But following your comment i try this : And it's start (now i wait for the result) |
The solution i post works fine. Is it the right one ;-) |
In a related question, is the only way to access the resource_configuration without the splat to use a for loop? It seems that resource_configuration is a "set" and not a "list" as one would expect. Not sure if this is desired behaviour or not. Even using a for loop, I cannot access the properties under the child "configuration" object.
Error message:
|
When accessing the properties of the configuration object I get this weirdness:
Error:
When I examine the keys I can see this is a valid key (and there are 46 of them, not 15!):
Output:
|
Is there any way to read the ip_address having multiple resource_configurations ? |
Hi @ricardf Are you looking for this?
The result will be something like this:
|
I'm trying to get only 1 of those IPS by the component_name |
So, I managed to get a list like this:
"APP" is the resource name defined at vRA catalog item. Is there any other way than using |
vRA 7.5 version
The vRA 7.5 version where is issue is found.
Terraform version
0.12.24
**terraform-provider-vra7 plugin version
1.0.1
Describe the bug
When it try to output my result, i'm not able to acces
To Reproduce
Steps to reproduce the behavior:
terraform apply
`Error: Unsupported attribute
on main.tf line 125, in output "machine-names":
125: value = ["${vra7_deployment.windows[*].resource_configuration.server1.hostname}"]
This value does not have any attributes.`
(server1 is underlined)
Expected behavior
It should output the hostname
The text was updated successfully, but these errors were encountered: