Skip to content

Commit

Permalink
auth with cloud-tokens fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szn committed Sep 19, 2023
1 parent 12d63ca commit 00fbb8b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/md2cf/utils/confluencemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,9 @@ def __init__(
def init(self):
kwargs = {
'url': self.url,
'username': self.username
'username': self.username,
'password': self.password or self.token
}
if self.password:
kwargs['password'] = self.password
if self.token:
kwargs['token'] = self.token
super().__init__(**kwargs)

def rewrite_images(
Expand Down

0 comments on commit 00fbb8b

Please sign in to comment.