git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
33df82b
)
Merge branch 'master' of ssh://git.planet-lab.org/git/plstackapi
author
Scott Baker
<smbaker@gmail.com>
Wed, 20 Aug 2014 19:33:37 +0000
(12:33 -0700)
committer
Scott Baker
<smbaker@gmail.com>
Wed, 20 Aug 2014 19:33:37 +0000
(12:33 -0700)
planetstack/tools/get_instance_ip.py
patch
|
blob
|
history
diff --git
a/planetstack/tools/get_instance_ip.py
b/planetstack/tools/get_instance_ip.py
index
69c6af5
..
c227e2e
100644
(file)
--- a/
planetstack/tools/get_instance_ip.py
+++ b/
planetstack/tools/get_instance_ip.py
@@
-59,7
+59,7
@@
def main():
# get (instance_name, ip) pairs for instances with names and ips
- slivers = [x for x in slivers if x["instance_name"]
and x["ip"]
]
+ slivers = [x for x in slivers if x["instance_name"]]
slivers = sorted(slivers, key = lambda sliver: sliver["instance_name"])
# return the last one in the list (i.e. the newest one)