Skip to content

Commit b6b6e06

Browse files
committed
Fixing typos after testing
1 parent 17ba5fd commit b6b6e06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • brus_backend_common/helpers

brus_backend_common/helpers/aws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def _get_boto3(method_name: str, *args, region_name=CONFIG.AWS_REGION, **kwargs)
138138
attr = getattr(boto3, method_name)
139139
kwargs.update({"region_name": region_name})
140140
endpoint = None
141-
if len(args) > 0 and upper(arg[0]) in ('S3', 'SSM', 'STS'):
142-
endpoint = getattr(CONFIG, f'AWS_{upper(args[0])}_ENDPOINT')
141+
if len(args) > 0 and args[0].upper() in ('S3', 'SSM', 'STS'):
142+
endpoint = getattr(CONFIG, f'AWS_{args[0].upper()}_ENDPOINT')
143143

144144
if callable(attr):
145145
if CONFIG.IS_LOCAL:

0 commit comments

Comments
 (0)