def server_index(): ary = Server.all() return jsonarify(ary)
def users_list(): ary = User.all() return jsonarify(ary)
def server_index(): ary = [remove_passwords_if_ineligible(obj) for obj in Server.all()] return jsonarify(ary)
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)