Skip to content

Commit 3c8d306

Browse files
author
Hovsep
committed
Merge pull request Azure#1747 from ClogenyTechnologies/ali/set_vm_chef_ext_cmd_issue
Updated client_rb code to copy newline character as it is in extension config file.
2 parents 3519ad9 + c20f669 commit 3c8d306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Chef/SetAzureVMChefExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private void SetPublicConfig()
193193
if (!IsClientRbEmpty)
194194
{
195195
ClientConfig = Regex.Replace(File.ReadAllText(this.ClientRb),
196-
"\"|'", "\\\"").TrimEnd('\r', '\n');
196+
"\"|'", "\\\"").TrimEnd('\r', '\n').Replace("\r\n", "\\r\\n");
197197
// Append ChefServerUrl and ValidationClientName to end of ClientRb
198198
if (!IsChefServerUrlEmpty && !IsValidationClientNameEmpty)
199199
{

0 commit comments

Comments
 (0)