summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2019-05-08 10:53:50 -0400
committerGitHub <noreply@github.com>2019-05-08 10:53:50 -0400
commit3afca3107e96caeaa2983b4b829733d17c62c672 (patch)
treee928704a9dcda81ebb8edbd3d5e359a33e5ce2e2
parenta0a0b02ce7d4a96fdaffa1762a6669afd6b60858 (diff)
parentbc037f32bdfbb2c3bc187847edc7028dd4f458f3 (diff)
downloadchef-3afca3107e96caeaa2983b4b829733d17c62c672.tar.gz
Merge pull request #8496 from MsysTechnologiesllc/VSingh/bootstrap-license-configuration-systax-error
Chef 15: FATAL: Configuration error SyntaxError in client.rb during bootstrap
-rw-r--r--lib/chef/knife/core/bootstrap_context.rb2
-rw-r--r--lib/chef/knife/core/windows_bootstrap_context.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/core/bootstrap_context.rb b/lib/chef/knife/core/bootstrap_context.rb
index 3dccb048ec..0f6dc0aedf 100644
--- a/lib/chef/knife/core/bootstrap_context.rb
+++ b/lib/chef/knife/core/bootstrap_context.rb
@@ -93,7 +93,7 @@ class Chef
CONFIG
unless @chef_config[:chef_license].nil?
- client_rb << "chef_license \"#{@chef_config[:chef_license]}\""
+ client_rb << "chef_license \"#{@chef_config[:chef_license]}\"\n"
end
if !(@chef_config[:config_log_level].nil? || @chef_config[:config_log_level].empty?)
diff --git a/lib/chef/knife/core/windows_bootstrap_context.rb b/lib/chef/knife/core/windows_bootstrap_context.rb
index a1b7311f51..285afe8969 100644
--- a/lib/chef/knife/core/windows_bootstrap_context.rb
+++ b/lib/chef/knife/core/windows_bootstrap_context.rb
@@ -65,7 +65,7 @@ class Chef
CONFIG
unless @chef_config[:chef_license].nil?
- client_rb << "chef_license \"#{@chef_config[:chef_license]}\""
+ client_rb << "chef_license \"#{@chef_config[:chef_license]}\"\n"
end
if @config[:chef_node_name]