Merge "simplify dns_ip_address code"
This commit is contained in:
commit
2b915486b5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user