Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Stromweld committed Apr 26, 2024
1 parent 215e59b commit 18b2ed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-pkr-bld-hyperv-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Packer Init
run: packer init -upgrade packer_templates
- name: Packer build
run: packer build -timestamp-ui -only="${{ matrix.provider }}.vm" -var "sources_enabled=[\"hyperv-iso.vm\"]" -var-file="os_pkrvars/$("${{ matrix.os }}".Split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates
run: packer build -timestamp-ui -only='${{ matrix.provider }}.vm' -var 'sources_enabled=["hyperv-iso.vm"]' -var-file="os_pkrvars/$("${{ matrix.os }}".Split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates
- name: Remove VM in case of canceled job
if: cancelled()
run: |
Expand Down
2 changes: 1 addition & 1 deletion lib/bento/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def packer_build_cmd(template, _var_file)
end if var_files
cmd.insert(4, "-only=#{only}") if only
cmd.insert(4, "-except=#{except}") if except
cmd.insert(4, "-var sources_enabled=#{only.split(',').inspect}") if only
cmd.insert(4, "-var 'sources_enabled=#{only.split(',').inspect}'") if only
cmd.insert(4, "-var cpus=#{cpus}") if cpus
cmd.insert(4, "-var memory=#{mem}") if mem
cmd.insert(4, '-var headless=false') if headed
Expand Down

0 comments on commit 18b2ed5

Please sign in to comment.