Skip to content

Commit

Permalink
comment out SCHEMA_SUFFIX for now
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb committed Jan 16, 2025
1 parent f74851c commit 0dcabe2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions koku/koku/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@
SCHEMA_SUFFIX = re.sub("[^a-zA-Z0-9_]", "_", ENVIRONMENT.get_value("SCHEMA_SUFFIX", default=""))
print(f"ORG ID SUFFIX: '{SCHEMA_SUFFIX}'")
if DEVELOPMENT:
if SCHEMA_SUFFIX == "":
SCHEMA_SUFFIX = f"_{ENVIRONMENT.get_value('USER', default='')}"
if not SCHEMA_SUFFIX.startswith("_"):
SCHEMA_SUFFIX = f"_{SCHEMA_SUFFIX}"
print(f"ORG ID SUFFIX: '{SCHEMA_SUFFIX}'")
# if SCHEMA_SUFFIX == "":
# SCHEMA_SUFFIX = f"_{ENVIRONMENT.get_value('USER', default='')}"
# if not SCHEMA_SUFFIX.startswith("_"):
# SCHEMA_SUFFIX = f"_{SCHEMA_SUFFIX}"
# print(f"ORG ID SUFFIX: '{SCHEMA_SUFFIX}'")
DEFAULT_IDENTITY = {
"identity": {
"account_number": "10001",
Expand Down Expand Up @@ -495,7 +495,7 @@
REQUESTED_ROS_BUCKET = ENVIRONMENT.get_value("REQUESTED_ROS_BUCKET", default="ros-report")
REQUESTED_SUBS_BUCKET = ENVIRONMENT.get_value("REQUESTED_SUBS_BUCKET", default="subs-report")
S3_TIMEOUT = ENVIRONMENT.int("S3_CONNECTION_TIMEOUT", default=60)
S3_ENDPOINT = ENVIRONMENT.get_value("S3_ENDPOINT", default="https://s3.amazonaws.com")
S3_ENDPOINT = CONFIGURATOR.get_object_store_endpoint()
S3_REGION = ENVIRONMENT.get_value("S3_REGION", default="us-east-1")
S3_BUCKET_NAME = CONFIGURATOR.get_object_store_bucket(REQUESTED_BUCKET)
S3_ACCESS_KEY = CONFIGURATOR.get_object_store_access_key(REQUESTED_BUCKET)
Expand Down

0 comments on commit 0dcabe2

Please sign in to comment.