def _get_gcp_ansible_credentials(module):
 service_account_email = module.params.get('service_account_email', None)
 credentials_file = (module.params.get('pem_file', None) or module.params.get('credentials_file', None))
 project_id = module.params.get('project_id', None)
 return (service_account_email, credentials_file, project_id)

def _get_gcp_ansible_credentials ( module ) : service_account_email = module . params . get ( 'service_account_email' , None ) credentials_file = ( module . params . get ( 'pem_file' , None ) or module . params . get ( 'credentials_file' , None ) ) project_id = module . params . get ( 'project_id' , None ) return ( service_account_email , credentials_file , project_id )
helper to fetch creds from ansiblemodule object .