Skip to content

Commit 8f27474

Browse files
authored
fixed-enable-global-region function (#934)
Co-authored-by: hickeydh-aws <hickeydh@amazon.com>
1 parent 0c4a412 commit 8f27474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/common/src/util/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ function randomString(length: number, charSet?: string) {
338338
}
339339

340340
function enableGlobalRegion(config: string, rawConfig: string, format: FormatType) {
341-
const rawConfigObj = getFormattedObject(config, format);
342-
const configObj = getFormattedObject(rawConfig, format);
341+
const rawConfigObj = getFormattedObject(rawConfig, format);
342+
const configObj = getFormattedObject(config, format);
343343
if (!rawConfigObj['global-options']['supported-regions'].includes('us-east-1')) {
344344
console.log('us-east-1 is not inlcuded in supported-regions. Adding.');
345345
configObj['global-options']['supported-regions'].push('us-east-1');

0 commit comments

Comments
 (0)