Fixed Snowflake (#4270)

This commit is contained in:
Ayush Shah 2022-04-20 15:47:41 +05:30 committed by GitHub
parent 77af1f2218
commit e64bed10b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ class SnowflakeSource(SQLSource):
config.serviceConnection.__root__.config.connectionArguments config.serviceConnection.__root__.config.connectionArguments
) )
if connection_arguments: if connection_arguments:
if connection_arguments.private_key: if hasattr(connection_arguments, "private_key"):
private_key = connection_arguments.private_key private_key = connection_arguments.private_key
p_key = serialization.load_pem_private_key( p_key = serialization.load_pem_private_key(
bytes(private_key, "utf-8"), bytes(private_key, "utf-8"),