Skip to content

Commit 5cdba31

Browse files
committed
get_first_property_value
1 parent 61c1bee commit 5cdba31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyiceberg/catalog/dynamodb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(self, name: str, **properties: str):
9696
super().__init__(name, **properties)
9797

9898
session = boto3.Session(
99-
profile_name=get_first_property_value(properties, DYNAMODB_PROFILE_NAME),
99+
profile_name=properties.get(DYNAMODB_PROFILE_NAME),
100100
region_name=get_first_property_value(properties, DYNAMODB_REGION, AWS_REGION),
101101
aws_access_key_id=get_first_property_value(properties, DYNAMODB_ACCESS_KEY_ID, AWS_ACCESS_KEY_ID),
102102
aws_secret_access_key=get_first_property_value(properties, DYNAMODB_SECRET_ACCESS_KEY, AWS_SECRET_ACCESS_KEY),

pyiceberg/catalog/glue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def __init__(self, name: str, **properties: Any):
297297
super().__init__(name, **properties)
298298

299299
session = boto3.Session(
300-
profile_name=get_first_property_value(properties, GLUE_PROFILE_NAME),
300+
profile_name=properties.get(GLUE_PROFILE_NAME),
301301
region_name=get_first_property_value(properties, GLUE_REGION, AWS_REGION),
302302
aws_access_key_id=get_first_property_value(properties, GLUE_ACCESS_KEY_ID, AWS_ACCESS_KEY_ID),
303303
aws_secret_access_key=get_first_property_value(properties, GLUE_SECRET_ACCESS_KEY, AWS_SECRET_ACCESS_KEY),

0 commit comments

Comments
 (0)