From 634758cfc77dff535c5e9e17cc99c6ba19e965b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:55:41 +0200 Subject: Adding upstream version 2.16.5. Signed-off-by: Daniel Baumann --- lib/ansible/galaxy/token.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ansible/galaxy/token.py') diff --git a/lib/ansible/galaxy/token.py b/lib/ansible/galaxy/token.py index 4455fd0..313d007 100644 --- a/lib/ansible/galaxy/token.py +++ b/lib/ansible/galaxy/token.py @@ -28,7 +28,7 @@ from stat import S_IRUSR, S_IWUSR from ansible import constants as C from ansible.galaxy.user_agent import user_agent -from ansible.module_utils._text import to_bytes, to_native, to_text +from ansible.module_utils.common.text.converters import to_bytes, to_native, to_text from ansible.module_utils.common.yaml import yaml_dump, yaml_load from ansible.module_utils.urls import open_url from ansible.utils.display import Display @@ -69,7 +69,7 @@ class KeycloakToken(object): # - build a request to POST to auth_url # - body is form encoded - # - 'request_token' is the offline token stored in ansible.cfg + # - 'refresh_token' is the offline token stored in ansible.cfg # - 'grant_type' is 'refresh_token' # - 'client_id' is 'cloud-services' # - should probably be based on the contents of the -- cgit v1.2.3