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
The 'Prepare Windows User' will set the env variable GOOGLE_APPLICATION_CREDENTIALS to an empty string when the molecule_yml.driver.service_account_file/GCP_SERVICE_ACCOUNT_FILE is undefined (which it commonly is when using auth_kind: application). windows_auth.py then fails to find the application credentials json file since GOOGLE_APPLICATION_CREDENTIALS is ""
I think this could be resolved by either not setting GOOGLE_APPLICATION_CREDENTIALS if
molecule_yml.driver.auth_kind == 'application'
or
both molecule_yml.driver.service_account_file/GCP_SERVICE_ACCOUNT_FILE is empty, since they shouldn't be allowed to be set when using auth_kind: application.
The 'Prepare Windows User' will set the env variable
GOOGLE_APPLICATION_CREDENTIALS
to an empty string when themolecule_yml.driver.service_account_file
/GCP_SERVICE_ACCOUNT_FILE
is undefined (which it commonly is when usingauth_kind: application
). windows_auth.py then fails to find the application credentials json file since GOOGLE_APPLICATION_CREDENTIALS is""
https://github.com/ansible-community/molecule-plugins/blob/196ed1eb034ebf343a270102179c98e84f49eb71/src/molecule_plugins/gce/playbooks/tasks/create_windows_instance.yml#L64C44-L64C44
The text was updated successfully, but these errors were encountered: