Ansible lookup plugin error throws a <class 'TypeError'> string indices must be integers, not 'str'

Just tested. It only works when i set the PASSBOLT_BASE_URL, PASSBOLT_PRIVATE_KEY and PASSBOLT_PASSPHRASE variables but not when the privkey is gpg imported and i use the PASSBOLT_GPG_LIBRARY and PASSBOLT_FINGERPRINT instead… which is the usecase i kind of need.