Skip to content

Commit

Permalink
fix(ingestor-api): Correct import path for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach authored Dec 6, 2022
1 parent 16569a8 commit be40af7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ingestor-api/runtime/src/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@functools.cache
def get_s3_credentials():
from .main import settings
from .config import settings

print("Fetching S3 Credentials...")

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

client = boto3.client("s3", **get_s3_credentials())
try:
Expand Down Expand Up @@ -56,7 +56,7 @@ def collection_exists(collection_id: str) -> bool:
"""
Ensure collection exists in STAC
"""
from .main import settings
from .config import settings

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

0 comments on commit be40af7

Please sign in to comment.