Skip to content

Commit be40af7

Browse files
authored
fix(ingestor-api): Correct import path for settings
1 parent 16569a8 commit be40af7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ingestor-api/runtime/src/validators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@functools.cache
77
def get_s3_credentials():
8-
from .main import settings
8+
from .config import settings
99

1010
print("Fetching S3 Credentials...")
1111

@@ -24,7 +24,7 @@ def s3_object_is_accessible(bucket: str, key: str):
2424
"""
2525
Ensure we can send HEAD requests to S3 objects.
2626
"""
27-
from .main import settings
27+
from .config import settings
2828

2929
client = boto3.client("s3", **get_s3_credentials())
3030
try:
@@ -56,7 +56,7 @@ def collection_exists(collection_id: str) -> bool:
5656
"""
5757
Ensure collection exists in STAC
5858
"""
59-
from .main import settings
59+
from .config import settings
6060

6161
url = "/".join(
6262
f'{url.strip("/")}' for url in [settings.stac_url, "collections", collection_id]

0 commit comments

Comments
 (0)