fix(dbt): validator should not complain when paths are None (#5125)

This commit is contained in:
BZ 2022-06-09 11:44:46 -04:00 committed by GitHub
parent 6302d32685
commit 01a96a029d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}"