Skip to content

Commit

Permalink
Merge pull request #131 from nrccua/DS-488-add-all-variations-of-env-…
Browse files Browse the repository at this point in the history
…names-to-ds_utils-db-cat

Add all variations of env names to ds_utils databricks catalog functions
  • Loading branch information
nrccua-timr authored Apr 6, 2024
2 parents cfe50dd + 0b23018 commit 8c68856
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ History
=======


v0.20.18 (2024-04-06)

* Add all variations of env names to ds_utils databricks catalog functions.


v0.20.17 (2024-04-05)

* Improve logging spark merge query results using logger instead of show.
Expand Down
10 changes: 5 additions & 5 deletions aioradio/ds_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def db_catalog(env):
"""Return the DataBricks catalog based on the passed in environment."""

catalog = ''
if env == 'sandbox':
if env in ['sandbox', 'dev']:
catalog = 'dsc_sbx'
elif env == 'prod':
elif env in ['prod', 'prd']:
catalog = 'dsc_prd'

return catalog
Expand All @@ -71,11 +71,11 @@ def ese_db_catalog(env):
"""Return the ESE DataBricks catalog based on the passed in environment."""

catalog = ''
if env == 'sandbox':
if env in ['sandbox', 'dev']:
catalog = 'ese_dev'
elif env == 'stage':
elif env in ['stage', 'stg']:
catalog = 'ese_stg'
elif env == 'prod':
elif env in ['prod', 'prd']:
catalog = 'ese_prd'

return catalog
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
long_description = fileobj.read()

setup(name='aioradio',
version='0.20.17',
version='0.20.18',
description='Generic asynchronous i/o python utilities for AWS services (SQS, S3, DynamoDB, Secrets Manager), Redis, MSSQL (pyodbc), JIRA and more',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 8c68856

Please sign in to comment.