(self, suffix=tuple(), host_ids=None)
create a generator of values from guest and hosts.

        Args:
            suffix: tag suffix
            host_ids: ids of hosts to get value from.
                If None provided, get values from all hosts.
                If a list of int provided, get values from all hosts listed.

        Returns:
            a generator of scatted values

        Raises:
            if host_ids is neither None nor a list of int, ValueError raised
create a generator of values from guest and hosts.
create a generator of values from guest and hosts .
def get(self, suffix=tuple(), host_ids=None):
        """
        create a generator of values from guest and hosts.

        Args:
            suffix: tag suffix
            host_ids: ids of hosts to get value from.
                If None provided, get values from all hosts.
                If a list of int provided, get values from all hosts listed.

        Returns:
            a generator of scatted values

        Raises:
            if host_ids is neither None nor a list of int, ValueError raised
        """
        yield self._guest_variable.get(idx=0, suffix=suffix)
        if host_ids is None:
            host_ids = -1
        for ret in self._host_variable.get(idx=host_ids, suffix=suffix):
            yield ret
def get ( self , suffix = tuple ( ) , host_ids = None ) : yield self . _guest_variable . get ( idx = 0 , suffix = suffix ) if host_ids is None : host_ids = - 1 for ret in self . _host_variable . get ( idx = host_ids , suffix = suffix ) : yield ret