Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
I propose to change the logic of defining the target resource pool. In the current logic, nested resource pools cannot be defined, and the virtual machine is deployed in the first pool found by name, nesting is not considered.
Fixes #1360
ISSUE TYPE
COMPONENT NAME
I changed a part of
get_resource_pool()
functionADDITIONAL INFORMATION
I get an array of nodes from a string (resource_pool parameter, eg resource_pool:/prod/web/app) Then iterate over each node in a loop. I first take the
root resource pool
and look for the first element from the array among its children. I then search for the next element from the array among the children of the found node, and so on.resource_pool parameter before:
resource_pool parameter after: