Merge "simplify dns_ip_address code"

This commit is contained in:
Jenkins 2014-03-04 06:02:50 +00:00 committed by Gerrit Code Review
commit 2b915486b5

View File

@ -160,9 +160,8 @@ class SimpleInstance(object):
def dns_ip_address(self):
"""Returns the IP address to be used with DNS."""
ips = self.get_visible_ip_addresses()
if ips is None or len(ips) < 1:
return None
return ips[0]
if ips:
return ips[0]
@property
def flavor_id(self):