Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Stromweld committed Mar 18, 2024
1 parent 5473647 commit 65ab76e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/bento/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(opts)
@dry_run = opts.dry_run
@metadata_only = opts.metadata_only
@debug = opts.debug
@only = opts.only
@only = opts.only ||= nil
@except = opts.except
@mirror = opts.mirror
@headed = opts.headed ||= false
Expand Down Expand Up @@ -87,7 +87,7 @@ def packer_build_cmd(template, _var_file)
var_files.each do |var_file|
cmd.insert(5, "-var-file=#{var_file}") if File.exist?(var_file)
end if var_files
cmd.insert(4, "-only=#{only}")
cmd.insert(4, "-only=#{only}") if only
cmd.insert(4, "-except=#{except}") if except
# Build the command line in the correct order and without spaces as future input for the splat operator.
cmd.insert(4, "-var cpus=#{cpus}") if cpus
Expand Down
1 change: 0 additions & 1 deletion packer_templates/pkr-variables.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ variable "no_proxy" {
variable "sources_enabled" {
type = list(string)
default = [
"source.hyperv-iso.vm",
"source.parallels-iso.vm",
"source.qemu.vm",
"source.virtualbox-iso.vm",
Expand Down

0 comments on commit 65ab76e

Please sign in to comment.