Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Conversation

@marratj
Copy link

@marratj marratj commented May 11, 2020

Signed-off-by: Marcel Juhnke [email protected]

This PR changes the way how resource_configuration is read back from a vRA Deployment into the state file.

Previously, only the data of vSphere VMs (resource type Infrastructure.Virtual) has been read back into the state files resource_configuration block. All non-VM resources in a deployment have been ignored in the state file.

This was also because the vRA API sends back the VM resources in a deployment directly in the ResourceView response, whereas for custom resource types only the Deployment itself would get sent back with a link to its Child Resources.

So this PR changes the logic on how Deployment details are read.

At first, only the Deployment itself is processed and then the GET: Child Resources link in the response is used to retrieve all child resources (which then includes both VMs and non-VM resources).

Those child resources then are added into the resource_configuration set, no matter if they are a VM or not (and including the IP address just for VMs, of course).

This implements #68

@ghost ghost added the size/L label May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant