From 4a69ab92a0fe053379f1fbdfd05914613891f274 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Wed, 20 Aug 2014 12:33:26 -0700 Subject: [PATCH] fix failing to return an ip if sliver.ip is not set --- planetstack/tools/get_instance_ip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetstack/tools/get_instance_ip.py b/planetstack/tools/get_instance_ip.py index 69c6af5..c227e2e 100644 --- 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) -- 2.43.0