From e32ecd5ce20054a66763e75321376a583a96f243 Mon Sep 17 00:00:00 2001 From: forest Date: Wed, 8 Dec 2021 19:45:35 -0600 Subject: [PATCH] commit unsaved file --- capsulflask/spoke_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: