-
Notifications
You must be signed in to change notification settings - Fork 5
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: added script to check for and delete packer cache #24
Conversation
I added some logic so it doesn't throw an error if it doesn't find existing cache. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback provided.
source /edge/vmware/clone_vm_template/setenv.sh | ||
|
||
# Check if the packer cache exists | ||
CACHE_EXISTS=$(govc datastore.ls -ds=$vcenter_datastore /packer_cache 2>/dev/null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure sending to null
is the answer. What if the error is related due to access? I think if an error, then we should output that error to help the user.
Co-authored-by: Karl Cardenas <[email protected]>
change error output destination
#25) * fix: added new tools such as oras and awscli, updated Terraform files to include OCI registries * chore: updated the template and documentation * docs: minor update to the terraform.tfvars file * docs: minor update to the terraform.tfvars file --------- Co-authored-by: Karl Cardenas <[email protected]>
🎉 This PR is included in version 1.0.9 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Describe the Change
This PR adds a script to the tutorials container that checks for existing packer cache. If it is found, the script deletes it.
Review Changes
🎫 Jira Ticket