From 51f14c56de5cc7e5c050333abe0bf6b267c39a15 Mon Sep 17 00:00:00 2001 From: Corey Hemminger Date: Tue, 21 Feb 2023 11:33:10 -0600 Subject: [PATCH] add force for prune command (#485) add force for prune command due to no tty for user input thus causing error Signed-off-by: Corey Hemminger --- lib/kitchen/driver/vagrant.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kitchen/driver/vagrant.rb b/lib/kitchen/driver/vagrant.rb index ba51512..e3dc9d8 100644 --- a/lib/kitchen/driver/vagrant.rb +++ b/lib/kitchen/driver/vagrant.rb @@ -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.