Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't print terminated hosts

  • Loading branch information...
commit 9e94845d74f6e16a2690a56d8441e8fe5bf4abb1 1 parent 839d548
@rail rail authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  aws/ec22ip.py
View
2  aws/ec22ip.py
@@ -31,5 +31,5 @@
instances = reduce(lambda a,b: a+b, [r.instances for r in res])
for i in instances:
for mask in hosts_re:
- if mask.search(i.tags.get('Name', '')):
+ if mask.search(i.tags.get('Name', '')) and i.private_ip_address:
print i.private_ip_address, i.tags.get('Name')
Please sign in to comment.
Something went wrong with that request. Please try again.