When running the dynamic inventory script against a gce deployment , some
nodes with external ips some without (running connecting through NAT ) i
encounter this error when running list:
sh-3.2# ./inventory/gce/gce.py --list
Traceback (most recent call last):
File "./inventory/gce/gce.py", line 287, in <module>
GceInventory()
File "./inventory/gce/gce.py", line 111, in __init__
print(self.json_format_dict(self.group_instances(),
File "./inventory/gce/gce.py", line 242, in group_instances
meta["hostvars"][name] = self.node_to_dict(node)
File "./inventory/gce/gce.py", line 214, in node_to_dict
'gce_public_ip': inst.public_ips[0],
IndexError: list index out of range
only happens when there are nodes without external ips.When given temporary
external ips the dynamic inventory proceeds as expected.Not sure if a bug
in the gce.py script or elsewhere.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/61d8778d-e3d5-4474-82aa-aa21b702e199%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.