예제 #1
0
def info(hosts, users=None):
    assert hosts
    log.debug("hosts='{}'".format(hosts))
    errors = 0
    for host in hosts:
        data = get_info(host, users=users)
        if data:
            print_info(data)
        else:
            errors += 1
    return errors
예제 #2
0
def info(hosts, users=None):
    assert hosts
    log.debug("hosts='{}'".format(hosts))
    for host in hosts:
        data = get_info(host, users=users)
        print_info(data)
예제 #3
0
파일: commands.py 프로젝트: wrabcak/core
def info(hosts, users=None):
    assert hosts
    for host in hosts:
        data = get_info(host, users=users)
        print_info(data)
예제 #4
0
def info(hosts, users=None):
    assert hosts
    for host in hosts:
        data = get_info(host, users=users)
        print_info(data)