issue #150: tweak script for running without external IPs

This commit is contained in:
David Wilson 2018-03-16 21:32:33 +05:45
parent 8607680730
commit b64e52b1fd
1 changed files with 3 additions and 2 deletions

View File

@ -18,9 +18,10 @@ def main():
for inst in resp['items']:
if inst['status'] == 'RUNNING' and inst['name'].startswith(group_name):
ips.extend(
bytes(config['natIP'])
#bytes(config['natIP'])
bytes(interface['networkIP'])
for interface in inst['networkInterfaces']
for config in interface['accessConfigs']
#for config in interface['accessConfigs']
)
print 'Addresses:', ips