Skip to content

Commit c20f669

Browse files
author
aliasgar16
committed
Updated client_rb code to copy newline character as it is in extension config file.
1 parent f7e4cbe commit c20f669

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
@@ -186,7 +186,7 @@ private void SetPublicConfig()
186186
if (!IsClientRbEmpty)
187187
{
188188
ClientConfig = Regex.Replace(File.ReadAllText(this.ClientRb),
189-
"\"|'", "\\\"").TrimEnd('\r', '\n');
189+
"\"|'", "\\\"").TrimEnd('\r', '\n').Replace("\r\n", "\\r\\n");
190190
// Append ChefServerUrl and ValidationClientName to end of ClientRb
191191
if (!IsChefServerUrlEmpty && !IsValidationClientNameEmpty)
192192
{

0 commit comments

Comments
 (0)