Skip to content

Commit

Permalink
fix: change quoting character
Browse files Browse the repository at this point in the history
  • Loading branch information
felippecaso committed Aug 8, 2023
1 parent 2a06cf3 commit c6cb22c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dbt/adapters/duckdb/plugins/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
class Plugin(BasePlugin):
def initialize(self, plugin_config: Dict[str, Any]):
# Pass s3 settings to plugin environment
if 's3_access_key_id' in plugin_config:
os.environ['AWS_ACCESS_KEY_ID'] = plugin_config.get('s3_access_key_id')
if 's3_secret_access_key' in plugin_config:
os.environ['AWS_SECRET_ACCESS_KEY'] = plugin_config.get('s3_secret_access_key')
if 's3_region' in plugin_config:
os.environ['AWS_DEFAULT_REGION'] = plugin_config.get('s3_region')
if "s3_access_key_id" in plugin_config:
os.environ["AWS_ACCESS_KEY_ID"] = plugin_config.get("s3_access_key_id")
if "s3_secret_access_key" in plugin_config:
os.environ["AWS_SECRET_ACCESS_KEY"] = plugin_config.get("s3_secret_access_key")
if "s3_region" in plugin_config:
os.environ["AWS_DEFAULT_REGION"] = plugin_config.get("s3_region")

def load(self, source_config: SourceConfig):
ext_location = source_config["external_location"]
ext_location = ext_location.format(**source_config.as_dict())
if 's3' in ext_location:
if "s3" in ext_location:
# Possible to add some treatment in the future
source_location = ext_location
else:
Expand Down

0 comments on commit c6cb22c

Please sign in to comment.