@@ -40,12 +40,12 @@ async function overrideSelection(
4040 override : boolean = false ,
4141) : Promise < OverrideDecision | undefined > {
4242 if ( override === true ) {
43- return "override " ;
43+ return "Override " ;
4444 }
4545 const fileList = filesToModify . join ( " and " ) ;
4646 const selection = await window . showWarningMessage (
4747 `The "localstack" AWS profile in ${ fileList } exists, but does not match the expected properties. Do you want to override it?` ,
48- "override " ,
48+ "Override " ,
4949 ) ;
5050 return selection ;
5151}
@@ -93,7 +93,7 @@ async function dnsResolveCheck(): Promise<boolean> {
9393 }
9494}
9595
96- type OverrideDecision = "override " | "do_not_override" ;
96+ type OverrideDecision = "Override " | "do_not_override" ;
9797
9898async function configureAwsConfigProfile (
9999 awsConfigFilename : string ,
@@ -110,7 +110,7 @@ async function configureAwsConfigProfile(
110110 try {
111111 if ( section ) {
112112 // LocalStack profile exists, but does not match the expected properties
113- if ( overrideDecision === "override " ) {
113+ if ( overrideDecision === "Override " ) {
114114 // User chose to override the existing profile.
115115
116116 // check if dnsResolveCheck is successful
@@ -186,7 +186,7 @@ async function configureCredentialsProfile(
186186 try {
187187 // LocalStack profile exists, but does not match the expected properties
188188 if ( section ) {
189- if ( overrideDecision === "override " ) {
189+ if ( overrideDecision === "Override " ) {
190190 // User chose to override the existing profile.
191191 const updatedIniFile = updateIniSection (
192192 iniFile ,
@@ -321,7 +321,7 @@ export async function configureAwsProfiles(options: {
321321 // profiles are there but need adjustment
322322 // in testing, we always override
323323 if ( options ?. forceOverride ) {
324- overrideDecision = "override " ;
324+ overrideDecision = "Override " ;
325325 } else {
326326 // check which files need override
327327 const filesToModify = [ ] ;
@@ -333,7 +333,7 @@ export async function configureAwsProfiles(options: {
333333 }
334334 } else {
335335 // if any of the profiles don't exist, we need to create it
336- overrideDecision = "override " ;
336+ overrideDecision = "Override " ;
337337 }
338338
339339 if ( overrideDecision === undefined ) {
@@ -350,7 +350,7 @@ export async function configureAwsProfiles(options: {
350350 } ,
351351 } ) ;
352352 return ;
353- } else if ( overrideDecision === "override " ) {
353+ } else if ( overrideDecision === "Override " ) {
354354 if ( configNeedsOverride && credentialsNeedsOverride ) {
355355 [ configModified , credentialsModified ] = await Promise . all ( [
356356 configureAwsConfigProfile (
0 commit comments