-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Update resourceVSphereDatacenterImport
to include any datacenter folder(s) in path
#1607
Conversation
Updates `resourceVSphereDatacenterImport` to include the datacenter folder in which the datacenter object may exist. If found in a datacenter folder, the leading "/" is removed and the inventory path is used for the `folder` attribute during the import. If the datacenter does not reside in a folder, the value is left empty during the import. #1374 Signed-off-by: Ryan Johnson <[email protected]>
resourceVSphereDatacenterImport
to import folderresourceVSphereDatacenterImport
to import folder
resourceVSphereDatacenterImport
to import folderresourceVSphereDatacenterImport
to include any datacenter folder(s) in path
resourceVSphereDatacenterImport
to include any datacenter folder(s) in pathresourceVSphereDatacenterImport
to include any datacenter folder(s) in path
I am looking at this now, it is very odd, UPDATE: ☝️ No this is not accurate, the import function is expected to correctly set the ID that would be used in the It would be most correct to have the |
Given the behavior of ignoring the folder is present between the |
Add import verification to acceptance tests
Import verification added to the tests:
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Updates
resourceVSphereDatacenterImport
to include the datacenter folder(s) in which the datacenter object may exist.If found in a datacenter folder, the leading "
/
" is removed and the inventory path is used for thefolder
attribute during the import.If the datacenter does not reside in a folder, the value is left empty during the import.
Release Note
r/datacenter
- UpdatesresourceVSphereDatacenterImport
to include the datacenter folder in which the datacenter object may exist. [GH-XXXX]References
Closes #1374
Test 1 (With Datacenter Folders)
main.tf
Test 2 (Without Datacenter Folders)
main.tf