From a279f89d29e4a8d924cc6f18306221fce8fef5ac Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Wed, 13 May 2020 14:52:50 -0700 Subject: [PATCH] update how value is checked for execute in hyper-v driver --- plugins/providers/hyperv/driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/hyperv/driver.rb b/plugins/providers/hyperv/driver.rb index ba81bdce3..99cb7ce13 100644 --- a/plugins/providers/hyperv/driver.rb +++ b/plugins/providers/hyperv/driver.rb @@ -283,7 +283,7 @@ module VagrantPlugins options = options || {} ps_options = [] options.each do |key, value| - next if value == '' || value.nil? + next if !value || value.to_s.empty? next if value == false ps_options << "-#{key}" # If the value is a TrueClass assume switch