Skip to content

Commit

Permalink
fix if clause for approle authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
pratiksha rajendrabhai badheka authored and pratiksha rajendrabhai badheka committed Dec 4, 2024
1 parent 9f9b783 commit e674c6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions providers/src/airflow/providers/hashicorp/hooks/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,8 @@ def __init__(
if kwargs:
client_kwargs = merge_dicts(client_kwargs, kwargs)

if auth_type == "approle":
if self.connection.login:
role_id = self.connection.login
if auth_type == "approle" and self.connection.login:
role_id = self.connection.login

if auth_type == "aws_iam":
if not role_id:
Expand Down

0 comments on commit e674c6a

Please sign in to comment.