Merge pull request #6307 from tbriggs-curse/fix/master/6306_chef_windows_capability
Fix/master/6306 chef windows capability
This commit is contained in:
commit
90b850aa49
|
@ -7,7 +7,7 @@ module VagrantPlugins
|
|||
# @return [true, false]
|
||||
def self.chef_installed(machine, version)
|
||||
if version != :latest
|
||||
command = 'if ((&knife --version) -Match "Chef: "' + version + '"){ exit 0 } else { exit 1 }'
|
||||
command = 'if ((&knife --version) -Match "Chef: ' + version.to_s + '"){ exit 0 } else { exit 1 }'
|
||||
else
|
||||
command = 'if ((&knife --version) -Match "Chef: *"){ exit 0 } else { exit 1 }'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue