Update cloudflare-ddns.py
Reuse variable name - duplicate delaration (code smell)
This commit is contained in:
parent
6ab0c4edc9
commit
d3111d926a
@ -86,7 +86,7 @@ def cf_api(endpoint, method, config, headers={}, data=False):
|
|||||||
api_token = config['authentication']['api_token']
|
api_token = config['authentication']['api_token']
|
||||||
if api_token != '' and api_token != 'api_token_here':
|
if api_token != '' and api_token != 'api_token_here':
|
||||||
headers = {
|
headers = {
|
||||||
"Authorization": "Bearer " + config['authentication']['api_token'],
|
"Authorization": "Bearer " + api_token,
|
||||||
**headers
|
**headers
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user