diff options
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index a3f7d3a23c..71ae2f1d0d 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -522,7 +522,7 @@ class Chef Knife::Core::WindowsBootstrapContext.new(config, config[:run_list], Chef::Config, secret) else require_relative "core/bootstrap_context" - Knife::Core::BootstrapContext.new(config, config[:run_list], Chef::Config, secret) + Knife::Core::BootstrapContext.new(config, config[:run_list], Chef::Config, secret, connection.connection) end end @@ -554,6 +554,7 @@ class Chef plugin_create_instance! $stdout.sync = true connect! + set_bootstrap_context register_client content = render_template @@ -564,6 +565,10 @@ class Chef connection.del_file!(bootstrap_path) if connection && bootstrap_path end + def set_bootstrap_context + Chef.set_bootstrap_context(bootstrap_context) + end + def register_client # chef-vault integration must use the new client-side hawtness, otherwise to use the # new client-side hawtness, just delete your validation key. |