Example #1
0
def server_index():
    ary = Server.all()
    return jsonarify(ary)
Example #2
0
def server_index():
    ary = Server.all()
    return jsonarify(ary)
Example #3
0
def users_list():
    ary = User.all()
    return jsonarify(ary)
Example #4
0
def server_index():
    ary = [remove_passwords_if_ineligible(obj) for obj in Server.all()]
    return jsonarify(ary)
Example #5
0
def server_config(server):
    ary = call_server(server, '/api/v1/servers/localhost/config', method='GET')
    if not eligible_for_passwords():
        ary = [obj for obj in ary if not is_config_password(obj['name'])]
    return jsonarify(ary)
Example #6
0
def users_list():
    ary = User.all()
    return jsonarify(ary)
Example #7
0
def server_config(server):
    ary = call_server(server, '/api/v1/servers/localhost/config', method='GET')
    if not eligible_for_passwords():
        ary = [obj for obj in ary if not is_config_password(obj['name'])]
    return jsonarify(ary)
Example #8
0
def server_index():
    ary = [remove_passwords_if_ineligible(obj) for obj in Server.all()]
    return jsonarify(ary)