diff --git a/capsulflask/spoke_api.py b/capsulflask/spoke_api.py index 35733a4..1ec47a0 100644 --- a/capsulflask/spoke_api.py +++ b/capsulflask/spoke_api.py @@ -97,7 +97,7 @@ def handle_get(operation_id, request_body): return jsonify(dict(assignment_status="assigned", id=vm.id, host=vm.host, state=vm.state, ipv4=vm.ipv4, ipv6=vm.ipv6, ssh_host_keys=vm.ssh_host_keys)) def handle_get_all_by_host_and_network(operation_id, request_body) -> dict: - return jsonify(dict(assignment_status="assigned", ids=current_app.config['SPOKE_MODEL'].get_all_by_host_and_network())) + return jsonify(dict(assignment_status="assigned", hosts=current_app.config['SPOKE_MODEL'].get_all_by_host_and_network())) def handle_create(operation_id, request_body): if not operation_id: