If a content library item is created, that this item is used for the vsphere_uuid in HCP. Stores the content_library_item_uuid into state and uses this value if present. otherwise, it uses the default.
Testing
Basic
➜ packer-plugin-vsphere111 git:(fix/hcp-cl-item-uuid) make generate
2024/05/24 16:28:15 Copying "docs" to ".docs/"
2024/05/24 16:28:15 Replacing @include '...' calls in .docs/
Compiling MDX docs in '.docs' to Markdown in '.web-docs'...
➜ packer-plugin-vsphere111 git:(fix/hcp-cl-item-uuid) ✗ make build
➜ packer-plugin-vsphere111 git:(fix/hcp-cl-item-uuid) make test
? github.com/hashicorp/packer-plugin-vsphere [no test files]
? github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/common/testing [no test files]
? github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/examples/driver [no test files]
? github.com/hashicorp/packer-plugin-vsphere/version [no test files]
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/clone 3.198s
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/common 2.819s
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/driver 8.877s
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/iso 4.272s
ok github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/supervisor 8.335s
ok github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere 3.561s
ok github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere-template 4.522s
Summary
If a content library item is created, that this item is used for the
vsphere_uuid
in HCP. Stores thecontent_library_item_uuid
into state and uses this value if present. otherwise, it uses the default.Testing
Basic
✅ PASS: Output Template Only
✅ PASS: Output Content Library Item (Destroy Source)
✅ PASS: Output Content Library Item and Keep Source Template
Reference
Closes #207