[re2o-lookup] Update configuration to query passwords from pass

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-03-02 09:00:03 +01:00
parent 13c97d3e07
commit ed05043465
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 2 additions and 2 deletions
lookup_plugins

View File

@ -527,8 +527,8 @@ class LookupModule(LookupBase):
if (api_username is None and api_password is None
and self._use_cpasswords):
display.vvv("Using cpasswords vault to get API credentials.")
api_username = variables.get('vault_re2o_service_user')
api_password = variables.get('vault_re2o_service_password')
api_username = variables.get('vault', {}).get('re2o_service_user')
api_password = variables.get('vault', {}).get('re2o_service_password')
if api_username is None:
raise AnsibleError(to_native(