def get_host_info(node_info, host):
    attrs = node_info.get('attributes', {})

    # ignore master only nodes
    if (attrs.get('data', 'true') == 'false' and
        attrs.get('client', 'false') == 'false' and
        attrs.get('master', 'true') == 'true'):
        return None
    return host
Make a web call to QingCloud IaaS API.
dataset/ETHPy150Open KunihikoKido/sublime-elasticsearch-client/lib/elasticsearch/transport.py/get_host_info--crossover with--dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/qingcloud.py/query