Add node private & public ips to gce groups (#12539)

pull/27976/head
Do Hoang Khiem 7 years ago committed by Chris Alfonso
parent 756b510414
commit 3b12a85750

@ -477,6 +477,13 @@ class GceInventory(object):
else: else:
groups[stat] = [name] groups[stat] = [name]
for private_ip in node.private_ips:
groups[private_ip] = [name]
if len(node.public_ips) >= 1:
for public_ip in node.public_ips:
groups[public_ip] = [name]
groups["_meta"] = meta groups["_meta"] = meta
return groups return groups

Loading…
Cancel
Save