Skip to content

Commit 0e4ead2

Browse files
author
nimisha
committed
Fixed parsing issues when options like chef_server_url and validation_client_name are passed separately
1 parent 20778b2 commit 0e4ead2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ResourceManager/Compute/Commands.Compute/Extension/Chef/SetAzureVMChefExtension.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,24 +226,24 @@ private Hashtable PublicConfiguration
226226
if (!IsChefServerUrlEmpty && !IsValidationClientNameEmpty)
227227
{
228228
string UserConfig = @"
229-
chef_server_url \""{0}\""
230-
validation_client_name \""{1}\""
229+
chef_server_url '{0}'
230+
validation_client_name '{1}'
231231
";
232232
ClientConfig += string.Format(UserConfig, this.ChefServerUrl, this.ValidationClientName);
233233
}
234234
// Append ChefServerUrl to end of ClientRb
235235
else if (!IsChefServerUrlEmpty)
236236
{
237237
string UserConfig = @"
238-
chef_server_url \""{0}\""
238+
chef_server_url '{0}'
239239
";
240240
ClientConfig += string.Format(UserConfig, this.ChefServerUrl);
241241
}
242242
// Append ValidationClientName to end of ClientRb
243243
else if (!IsValidationClientNameEmpty)
244244
{
245245
string UserConfig = @"
246-
validation_client_name \""{0}\""
246+
validation_client_name '{0}'
247247
";
248248
ClientConfig += string.Format(UserConfig, this.ValidationClientName);
249249
}
@@ -252,8 +252,8 @@ private Hashtable PublicConfiguration
252252
else if (!IsChefServerUrlEmpty && !IsValidationClientNameEmpty)
253253
{
254254
string UserConfig = @"
255-
chef_server_url \""{0}\""
256-
validation_client_name \""{1}\""
255+
chef_server_url '{0}'
256+
validation_client_name '{1}'
257257
";
258258
ClientConfig = string.Format(UserConfig, this.ChefServerUrl, this.ValidationClientName);
259259
}

0 commit comments

Comments
 (0)