From 6e4eb66cb1a32429eb449ce9bfeb84c65a7e7404 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Mon, 17 Jun 2019 14:06:03 -0700 Subject: [PATCH] Fix windows binary check for chef provisioner --- plugins/provisioners/chef/provisioner/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/chef/provisioner/base.rb b/plugins/provisioners/chef/provisioner/base.rb index 607909a4e..7bc8ceca0 100644 --- a/plugins/provisioners/chef/provisioner/base.rb +++ b/plugins/provisioners/chef/provisioner/base.rb @@ -69,7 +69,7 @@ module VagrantPlugins # Checks for the existence of chef binary and error if it # doesn't exist. if windows? - command = "if ((&'#{binary}' -v) -Match 'Chef: *'){ exit 0 } else { exit 1 }" + command = "if ((&'#{binary}' -v) -Match 'Chef*'){ exit 0 } else { exit 1 }" else command = "sh -c 'command -v #{binary}'" end