Update cloudflare-ddns.py

Reuse variable name - duplicate delaration (code smell)
This commit is contained in:
Tim Miller 2020-07-27 17:52:56 -04:00 committed by GitHub
parent 6ab0c4edc9
commit d3111d926a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: