From 83df35b6b0b951dad1a9cfba60ca0e880bbb0427 Mon Sep 17 00:00:00 2001 From: Vasu1105 Date: Thu, 23 Jul 2015 17:36:45 +0530 Subject: [PATCH] Fixed bootstrap_version command line option --- lib/chef/knife/google_server_create.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/chef/knife/google_server_create.rb b/lib/chef/knife/google_server_create.rb index c7f8309..6b141cf 100644 --- a/lib/chef/knife/google_server_create.rb +++ b/lib/chef/knife/google_server_create.rb @@ -185,7 +185,8 @@ class GoogleServerCreate < Knife option :bootstrap_version, :long => "--bootstrap-version VERSION", - :description => "The version of Chef to install" + :description => "The version of Chef to install", + :proc => Proc.new { |v| Chef::Config[:knife][:bootstrap_version] = v } option :distro, :short => "-d DISTRO",