diff --git a/python-sync-actions/src/configuration.py b/python-sync-actions/src/configuration.py index 958aad6..5984f37 100644 --- a/python-sync-actions/src/configuration.py +++ b/python-sync-actions/src/configuration.py @@ -352,19 +352,19 @@ def build_request_content(method: Literal['GET', 'POST', 'FORM'], params: dict) def _find_api_key_location(dictionary): position = None - key = None + final_key = None for key, val in dictionary.get('defaultOptions', {}).get('params', {}).items(): if val == {'attr': '#__AUTH_TOKEN'}: - key = key + final_key = key position = 'query' for key, val in dictionary.get('headers', {}).items(): if val == {'attr': '#__AUTH_TOKEN'}: - key = key + final_key = key position = 'headers' - return position, key + return position, final_key class AuthMethodConverter: