Skip to content

Commit 0b64123

Browse files
committed
update user agent
1 parent 7bae43e commit 0b64123

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ underline=$(tput smul)
77
notunderline=$(tput rmul)
88
notbold=$(tput sgr0)
99

10-
version () { echo "awssdlf/2.0.0"; }
10+
version () { echo "awssdlf/2.1.0"; }
1111

1212
usage () { echo "
1313
--version -- Prints the SDLF version

sdlf-datalakeLibrary/python/datalake_library/interfaces/s3_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class S3Interface:
1616
def __init__(self, log_level=None, s3_client=None):
1717
self.log_level = log_level or os.getenv("LOG_LEVEL", "INFO")
1818
self._logger = init_logger(__name__, self.log_level)
19-
self._session_config = Config(user_agent="awssdlf/2.0.0")
19+
self._session_config = Config(user_agent="awssdlf/2.1.0")
2020
self._s3_client = s3_client or boto3.client("s3", config=self._session_config)
2121

2222
def download_object(self, bucket, key):

sdlf-foundations/lambda/catalog/src/lambda_function.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
from urllib.parse import unquote_plus
66

77
import boto3
8+
from botocore.config import Config
89
from botocore.exceptions import ClientError
910

11+
session_config = Config(user_agent_extra="awssdlf/2.1.0")
12+
1013
logger = logging.getLogger()
1114
logger.setLevel(logging.INFO)
1215
dynamodb = boto3.client("dynamodb")

0 commit comments

Comments
 (0)