Remove validation that causes issue #1216 #1313
Merged
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.
Problem
As it is now, the VCD Provider requires that
default_compute_policy_id
is set whenvm_placement_policy_ids
orvm_sizing_policy_ids
are specified.This works for most of the cases, except one important one: When a VDC is created with several Placement policies assigned (
vm_placement_policy_ids
) but one wants to use the System default Sizing policy as default:Applying a configuration like this will fail on runtime due to a validation the provider does in code:
Fix
When there is no
default_compute_policy_id
set (or it is ""), ignore the validation:Tests
Added a new VDC definition that replicates this scenario in
TestAccVcdOrgVdcWithAllComputePolicies
Closes #1216