mirror of
https://github.com/ansible/awx.git
synced 2026-07-26 15:48:17 -02:30
Merge pull request #3754 from AlanCoding/gce_env_var
Simplify gce inventory plugin injector Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -19,8 +19,9 @@ def gce(cred, env, private_data_dir):
|
||||
project = cred.get_input('project', default='')
|
||||
username = cred.get_input('username', default='')
|
||||
|
||||
env['GCE_EMAIL'] = username
|
||||
env['GCE_PROJECT'] = project
|
||||
if 'INVENTORY_UPDATE_ID' not in env:
|
||||
env['GCE_EMAIL'] = username
|
||||
env['GCE_PROJECT'] = project
|
||||
json_cred = {
|
||||
'type': 'service_account',
|
||||
'private_key': cred.get_input('ssh_key_data', default=''),
|
||||
|
||||
Reference in New Issue
Block a user