From 68fc54e772532437719a0fdbce0234cde4961a21 Mon Sep 17 00:00:00 2001 From: Adipa Wijayathilaka Date: Thu, 13 Jun 2024 11:32:44 -0400 Subject: [PATCH] Some AWS SDK's invoke BMX with quotes as part of the arguments reported-by: Chenfeng Bao --- src/D2L.Bmx/WriteHandler.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/D2L.Bmx/WriteHandler.cs b/src/D2L.Bmx/WriteHandler.cs index de0287dc..4c50892f 100644 --- a/src/D2L.Bmx/WriteHandler.cs +++ b/src/D2L.Bmx/WriteHandler.cs @@ -79,10 +79,10 @@ bool useCredentialProcess } data[sectionName]["credential_process"] = "bmx print --format json --cache --non-interactive" - + $" --org \"{oktaApi.Org}\"" - + $" --user \"{oktaApi.User}\"" - + $" --account \"{awsCredsInfo.Account}\"" - + $" --role \"{awsCredsInfo.Role}\"" + + $" --org {oktaApi.Org}" + + $" --user {oktaApi.User}" + + $" --account {awsCredsInfo.Account}" + + $" --role {awsCredsInfo.Role}" + $" --duration {awsCredsInfo.Duration}"; } else { if( !data.Sections.ContainsSection( profile ) ) {