Convert Chef Version to a string before comparison

Fixes GH-6709
This commit is contained in:
Seth Vargo 2015-12-22 11:54:23 -05:00
parent f7bdcb1b2b
commit f780c96a90
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ module VagrantPlugins
args << " --log_level #{config.log_level}" if config.log_level
args << " --no-color" if !options[:colored]
if config.install && (config.version == :latest || config.version >= "11.0")
if config.install && (config.version == :latest || config.version.to_s >= "11.0")
args << " --force-formatter"
end