Skip to content

Commit

Permalink
add force for prune command (#485)
Browse files Browse the repository at this point in the history
add force for prune command due to no tty for user input thus causing error

Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Stromweld authored Feb 21, 2023
1 parent 991d41e commit 51f14c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kitchen/driver/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def finalize_box_auto_update!
def finalize_box_auto_prune!
return if config[:box_auto_prune].nil?

config[:box_auto_prune] = "vagrant box prune --keep-active-boxes --name #{config[:box]} --provider #{config[:provider]}"
config[:box_auto_prune] = "vagrant box prune --force --keep-active-boxes --name #{config[:box]} --provider #{config[:provider]}"
end

# Replaces any `{{vagrant_root}}` tokens in the pre create command.
Expand Down

0 comments on commit 51f14c5

Please sign in to comment.