src/lsi/utils/hosts.py
def repr_as_line(self, additional_columns=None, only_show=None, sep=','):
        """
        Returns a representation of the host as a single line, with columns
        joined by ``sep``.

        :param additional_columns: Columns to show in addition to defaults.
        :type additional_columns: ``list`` of ``str``
        :param only_show: A specific list of columns to show.
        :type only_show: ``NoneType`` or ``list`` of ``str``
        :param sep: The column separator to use.
        :type sep: ``str``

        :rtype: ``str``
        """
        additional_columns = additional_columns or []
        if only_show is not None:
            columns = _uniquify(only_show)
        else:
            columns = _uniquify(self.DEFAULT_COLUMNS + additional_columns)
        to_display = [self._get_attrib(c, convert_to_str=True) for c in columns]
        return sep.join(to_display)
def repr_as_line(self, additional_columns=None, only_show=None, sep=','):
        """
        Returns a representation of the host as a single line, with columns
        joined by ``sep``.

        :param additional_columns: Columns to show in addition to defaults.
        :type additional_columns: ``list`` of ``str``
        :param only_show: A specific list of columns to show.
        :type only_show: ``NoneType`` or ``list`` of ``str``
        :param sep: The column separator to use.
        :type sep: ``str``

        :rtype: ``str``
        """
        additional_columns = additional_columns or []
        if only_show is not None:
            columns = _uniquify(only_show)
        else:
            columns = _uniquify(self.DEFAULT_COLUMNS + additional_columns)
        to_display = [self._get_attrib(c, convert_to_str=True) for c in columns]
        return sep.join(to_display)
Returns a representation of the host as a single line, with columns
        joined by ``sep``.

        :param additional_columns: Columns to show in addition to defaults.
        :type additional_columns: ``list`` of ``str``
        :param only_show: A specific list of columns to show.
        :type only_show: ``NoneType`` or ``list`` of ``str``
        :param sep: The column separator to use.
        :type sep: ``str``

        :rtype: ``str``