summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2020-05-20 10:10:34 -0400
committerBryan McLellan <btm@loftninjas.org>2020-05-20 10:13:33 -0400
commitc5c9916d6a293f0a45831d07bf8fa00d3e845c40 (patch)
tree036d8c7940d7deabd31597398dc7b89e9828e3ed
parent3536688af38f6ae1e447fa8d03bdaee8c4ec4a3a (diff)
downloadchef-c5c9916d6a293f0a45831d07bf8fa00d3e845c40.tar.gz
Add REM lines to windows bootstrap script to fix label
For reasons only inferred on the internet, a batch label cannot exist near a "block boundary." What exactly that is I cannot discover. But this does fix this error: "The system cannot find the batch label specified - key_create" Fixes #9844 Signed-off-by: Bryan McLellan <btm@loftninjas.org>
-rw-r--r--lib/chef/knife/bootstrap/templates/windows-chef-client-msi.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap/templates/windows-chef-client-msi.erb b/lib/chef/knife/bootstrap/templates/windows-chef-client-msi.erb
index 0b444e718c..9699c09b0e 100644
--- a/lib/chef/knife/bootstrap/templates/windows-chef-client-msi.erb
+++ b/lib/chef/knife/bootstrap/templates/windows-chef-client-msi.erb
@@ -202,10 +202,12 @@ If !ERRORLEVEL!==0 (
) else (
@echo Installation completed successfully
del /f /q "%CHEF_CLIENT_MSI_LOG_PATH%"
- )
+ )
<% end %>
+@rem This line is required to separate the key_create label from the "block boundary"
+@rem Removing these lines will cause the error "The system cannot find the batch label specified - key_create"
:key_create
@endlocal