Skip to content
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: floppy naming pattern #403

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

tenthirtyam
Copy link
Collaborator

Summary

  • Updates the naming pattern for a generated floppy from the status packer-tmp-created-floppy.flp to a pattern of packer-##########.flp (e.g., packer-0123456789.flp.)
    • This naming pattern matches the one used by packer-sdk for generated ISOs.
  • Updates the tests to account for this change from the static name to the new pattern.

Reference

Closes #93

Testing

packer-plugin-vsphere git:(main) ✗ packer-plugin-vsphere git:(fix-floppy-naming-pattern) make generate
2024/04/11 09:28:47 Copying "docs" to ".docs/"
2024/04/11 09:28:47 Replacing @include '...' calls in .docs/
Compiling MDX docs in '.docs' to Markdown in '.web-docs'...packer-plugin-vsphere git:(fix-floppy-naming-pattern) 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        2.685s
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/common       4.937s
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/driver       5.226s
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/iso  3.501s
ok      github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/supervisor   8.325s
ok      github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere       4.817s
ok      github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere-template      4.223spacker-plugin-vsphere git:(fix-floppy-naming-pattern) make build   packer-plugin-vsphere git:(fix-floppy-naming-pattern) 

@tenthirtyam tenthirtyam added this to the v1.2.8 milestone Apr 11, 2024
@tenthirtyam tenthirtyam self-assigned this Apr 11, 2024
@tenthirtyam tenthirtyam marked this pull request as ready for review April 11, 2024 13:59
@tenthirtyam tenthirtyam requested a review from a team as a code owner April 11, 2024 13:59
Copy link
Contributor

@lbajolet-hashicorp lbajolet-hashicorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny nit left, but overall LGTM!

builder/vsphere/common/step_add_floppy.go Show resolved Hide resolved
- Updates the naming pattern for a generated floppy from the status `packer-tmp-created-floppy.flp` to a pattern of `packer-##########.flp`. This naming pattern matches the one used by packer-sdk for generated ISOs. This helps avoid conflicts with other floppy images that might be uploaded.
- Updates the tests to account for this change from the static name to the new pattern.

Ref: #93

Signed-off-by: Ryan Johnson <[email protected]>
@lbajolet-hashicorp lbajolet-hashicorp merged commit 2eb1527 into main Apr 12, 2024
12 checks passed
@lbajolet-hashicorp lbajolet-hashicorp deleted the fix-floppy-naming-pattern branch April 12, 2024 15:12
@hashicorp hashicorp locked and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Floppy gets overwritten with multiple parallel runs
2 participants