Skip to content

Commit

Permalink
fix: ignore warnings for all envs
Browse files Browse the repository at this point in the history
  • Loading branch information
a-chumagin committed Sep 11, 2023
1 parent 73af8d1 commit e11ec81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/data_test/data_test/data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

def handler(event, context):
logger.info("Starting data test")
_ignore_warnings()
if os.environ['ENVIRONMENT'] == 'local':
_ignore_warnings()
endpoint_url = (f"http://{os.environ['S3_HOST']}:"
f"{os.environ['S3_PORT']}")
s3 = boto3.resource("s3", endpoint_url=endpoint_url)
Expand Down

0 comments on commit e11ec81

Please sign in to comment.