Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'nic_gce_struct' to gcp_compute_template. #65500

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/ansible/modules/cloud/google/gce_instance_template.py
Expand Up @@ -284,6 +284,7 @@ def create_instance_template(module, gce):
metadata = module.params.get('metadata')
description = module.params.get('description')
disks_gce_struct = module.params.get('disks_gce_struct')
nic_gce_struct = module.params.get('nic_gce_struct')
changed = False

# args of ex_create_instancetemplate
Expand Down Expand Up @@ -378,6 +379,9 @@ def create_instance_template(module, gce):
if disks_gce_struct is not None:
gce_args['disks_gce_struct'] = disks_gce_struct

if nic_gce_struct is not None:
gce_args['nic_gce_struct'] = nic_gce_struct

# Try to convert the user's metadata value into the format expected
# by GCE. First try to ensure user has proper quoting of a
# dictionary-like syntax using 'literal_eval', then convert the python
Expand Down