src/lsi/utils/hosts.py
def display(self):
        """
        Returns the best name to display for this host. Uses the instance
        name if available; else just the public IP.

        :rtype: ``str``
        """
        if isinstance(self.name, six.string_types) and len(self.name) > 0:
            return '{0} ({1})'.format(self.name, self.public_ip)
        else:
            return self.public_ip
def display(self):
        """
        Returns the best name to display for this host. Uses the instance
        name if available; else just the public IP.

        :rtype: ``str``
        """
        if isinstance(self.name, six.string_types) and len(self.name) > 0:
            return '{0} ({1})'.format(self.name, self.public_ip)
        else:
            return self.public_ip
Returns the best name to display for this host. Uses the instance
        name if available; else just the public IP.

        :rtype: ``str``