mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-01 19:25:56 +00:00
fix(dbt): validator should not complain when paths are None (#5125)
This commit is contained in:
parent
6302d32685
commit
01a96a029d
@ -216,8 +216,9 @@ class DBTConfig(StatefulIngestionConfigBase):
|
||||
uri_containing_fields = [
|
||||
f
|
||||
for f in ["manifest_path", "catalog_path", "sources_path"]
|
||||
if values.get(f, "").startswith("s3://")
|
||||
if (values.get(f) or "").startswith("s3://")
|
||||
]
|
||||
|
||||
if uri_containing_fields and not aws_connection:
|
||||
raise ValueError(
|
||||
f"Please provide aws_connection configuration, since s3 uris have been provided in fields {uri_containing_fields}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user