summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2020-05-20 10:10:34 -0400
committerTim Smith <tsmith84@gmail.com>2020-05-22 09:36:43 -0700
commitc104baee48bed170ed5b656d1277a6056c047636 (patch)
tree2985c7726572947e3395252d10da62b5aac0c5df
parente28984bf00d680c0e38d8be2de300f3d73f616df (diff)
downloadchef-c104baee48bed170ed5b656d1277a6056c047636.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 3fe397ed9e..4c8c51ee6c 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