Skip to content

Commit

Permalink
Work around for user/password mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
DanMawdsleyBA committed Nov 4, 2023
1 parent 231029a commit 79c6ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/profiles/snowflake/user_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SnowflakeUserPasswordProfileMapping(BaseProfileMapping):
def can_claim_connection(self) -> bool:
# Make sure this isn't a private key path credential
result = super().can_claim_connection()
if result and self.conn.extra_dejson.get("private_key_file") is not None:
if result and self.conn.extra_dejson.get("private_key_file") is not None and self.conn.extra_dejson.get("private_key_content") is not None:
return False
return result

Expand Down

0 comments on commit 79c6ada

Please sign in to comment.