From f780c96a90ec9ae661422d4d402ffc0083361d0b Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 22 Dec 2015 11:54:23 -0500 Subject: [PATCH] Convert Chef Version to a string before comparison Fixes GH-6709 --- plugins/provisioners/chef/command_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/chef/command_builder.rb b/plugins/provisioners/chef/command_builder.rb index 4138ae84f..691c3a5b0 100644 --- a/plugins/provisioners/chef/command_builder.rb +++ b/plugins/provisioners/chef/command_builder.rb @@ -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