'Return the server\'s IP address, fetching it from Nova.'

def server_to_ipaddress(self, server):

    try:
        server = self.client().servers.get(server)
    except exceptions.NotFound as ex:
        LOG.warning('Instance    (%(server)s)    not    found:    %(ex)s', {'server': server, 'ex': ex})
    else:
        for n in sorted(server.networks, reverse=True):
            if (len(server.networks[n]) > 0):
                return server.networks[n][0]
