Add node private & public ips to gce groups (#12539)
This commit is contained in:
parent
756b510414
commit
3b12a85750
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue