fix: existing template detection in vsphere-template post-processor#727
Merged
tenthirtyam merged 1 commit intoJun 10, 2026
Merged
Conversation
tenthirtyam
approved these changes
Jun 10, 2026
Collaborator
|
@karelvanhecke - thanks for this contribution. I can merge this once your commit has a verified signature. You can refer to my blog post Signing Your Git Commits: From Zero to Verified to amend and sign the commit. Ryan Johnson, Broadcom |
Collaborator
|
Marked as draft until the commit(s) have verified signatures. |
Signed-off-by: Karel Van Hecke <25814162+karelvanhecke@users.noreply.github.com>
af8f7e5 to
6bea605
Compare
Contributor
Author
|
@tenthirtyam I've signed my commit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Improves the logic for finding a template VM by adding an explicit check to ensure the returned VM is actually a template. If the found VM is not a template, the function now returns
nilinstead of the VM.In
step_mark_as_template.go, thefindTemplatefunction now checks if the located VM is a template usingIsTemplate, and only returns the VM if it is indeed a template. If not, it returnsnil, preventing incorrect handling of non-template VMs.Type
fix: Bug Fixfeat: Feature or Enhancementdocs: Documentationrefactor: Refactoringchore: Build, Dependencies, Workflows, etc.other: Other (Please describe.)Breaking Changes?
Tests
Output:
Documentation
Issue References
Closes #728
Release Note
Additional Information