fix variable name
This commit is contained in:
parent
e3ece477c0
commit
7459299bf2
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ headers = {
|
|||
}
|
||||
|
||||
def get_auth(headers):
|
||||
if settings.LISTMON_TOKEN:
|
||||
headers['Authorization'] = 'token ' + settings.LISTMON_TOKEN
|
||||
if settings.LISTMONK_TOKEN:
|
||||
headers['Authorization'] = 'token ' + settings.LISTMONK_TOKEN
|
||||
auth = None
|
||||
else:
|
||||
auth = (settings.LISTMONK_USER, settings.LISTMONK_PASSWORD)
|
||||
|
|
Loading…
Add table
Reference in a new issue