'Like get_hosts() but returns hostnames instead of Host objects.'

def get_hostnames(self, status=None, label=None, **dargs):

    return [host_obj.hostname for host_obj in self.get_hosts(status=status, label=label, **dargs)]
