issue #150: tweak script for running without external IPs
This commit is contained in:
parent
8607680730
commit
b64e52b1fd
|
@ -18,9 +18,10 @@ def main():
|
||||||
for inst in resp['items']:
|
for inst in resp['items']:
|
||||||
if inst['status'] == 'RUNNING' and inst['name'].startswith(group_name):
|
if inst['status'] == 'RUNNING' and inst['name'].startswith(group_name):
|
||||||
ips.extend(
|
ips.extend(
|
||||||
bytes(config['natIP'])
|
#bytes(config['natIP'])
|
||||||
|
bytes(interface['networkIP'])
|
||||||
for interface in inst['networkInterfaces']
|
for interface in inst['networkInterfaces']
|
||||||
for config in interface['accessConfigs']
|
#for config in interface['accessConfigs']
|
||||||
)
|
)
|
||||||
|
|
||||||
print 'Addresses:', ips
|
print 'Addresses:', ips
|
||||||
|
|
Loading…
Reference in New Issue