'Returns a list of (Host, Autotest, install directory) tuples for hosts
currently supported by this profiler. The returned Host object is always
the one created by this profiler, regardless of what\'s passed in. If
\'host\' is not None, all entries not matching that host object are
filtered out of the list.'

def _get_hosts(self, host=None):

    if (host is None):
        return self.installed_hosts.values()
    if (host.hostname in self.installed_hosts):
        return [self.installed_hosts[host.hostname]]
    return []
