Skip to content

Commit

Permalink
chore(openapi): improve condition
Browse files Browse the repository at this point in the history
Co-authored-by: Harshal Sheth <[email protected]>
  • Loading branch information
2 people authored and Dimitri GRISARD committed Jan 26, 2024
1 parent 34268f7 commit 62e23ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion metadata-ingestion/src/datahub/ingestion/source/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ def ensure_only_one_token(

def get_swagger(self) -> Dict:
if self.get_token or self.token or self.bearer_token is not None:
if self.token or self.bearer_token:
if self.token:
pass
elif self.bearer_token:
self.token = f"Bearer {self.bearer_token}"
...
else:
assert (
Expand Down

0 comments on commit 62e23ad

Please sign in to comment.