You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: 'Client' has no attribute 'renew_self_token'. Did you mean: 'renew_token'?
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1708424555.9978213-125-13163223647805/AnsiballZ_hashivault_token_renew.py", line 107, in
_ansiballz_main()
File "/root/.ansible/tmp/ansible-tmp-1708424555.9978213-125-13163223647805/AnsiballZ_hashivault_token_renew.py", line 99, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/root/.ansible/tmp/ansible-tmp-1708424555.9978213-125-13163223647805/AnsiballZ_hashivault_token_renew.py", line 47, in invoke_module
runpy.run_module(mod_name='ansible.modules.hashivault.hashivault_token_renew', init_globals=dict(_module_fqn='ansible.modules.hashivault.hashivault_token_renew', _modlib_path=modlib_path),
File "", line 226, in run_module
File "", line 98, in _run_module_code
File "", line 88, in _run_code
File "/tmp/ansible_hashivault_token_renew_payload_xm_lu8p4/ansible_hashivault_token_renew_payload.zip/ansible/modules/hashivault/hashivault_token_renew.py", line 75, in
File "/tmp/ansible_hashivault_token_renew_payload_xm_lu8p4/ansible_hashivault_token_renew_payload.zip/ansible/modules/hashivault/hashivault_token_renew.py", line 51, in main
File "/tmp/ansible_hashivault_token_renew_payload_xm_lu8p4/ansible_hashivault_token_renew_payload.zip/ansible/module_utils/hashivault.py", line 154, in wrapper
File "/tmp/ansible_hashivault_token_renew_payload_xm_lu8p4/ansible_hashivault_token_renew_payload.zip/ansible/modules/hashivault/hashivault_token_renew.py", line 68, in hashivault_token_renew
File "/usr/local/lib/python3.12/site-packages/hvac/v1/init.py", line 155, in getattr
return utils.getattr_with_deprecated_properties(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hvac/utils.py", line 252, in getattr_with_deprecated_properties
raise AttributeError(
AttributeError: 'Client' has no attribute 'renew_self_token'. Did you mean: 'renew_token'?
The text was updated successfully, but these errors were encountered:
The code line https://github.com/TerryHowe/ansible-modules-hashivault/blob/main/ansible/modules/hashivault/hashivault_token_renew.py#L68 is not valid anymore.
In the HVAC change the function was moved https://hvac.readthedocs.io/en/stable/changelog.html#june-16th-2020
Old function https://hvac.readthedocs.io/en/stable/source/hvac_v1.html#hvac.v1.Client.renew_token
The function moved to a different place:
https://hvac.readthedocs.io/en/stable/source/hvac_api_auth_methods.html#hvac.api.auth_methods.Token.renew_self
The text was updated successfully, but these errors were encountered: