From 59fd43e16452342c51578fd01ef2a211c247b5d1 Mon Sep 17 00:00:00 2001 From: forest Date: Fri, 10 Dec 2021 20:06:21 -0500 Subject: [PATCH] try to fix get_all_by_id --- capsulflask/hub_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/capsulflask/hub_model.py b/capsulflask/hub_model.py index 8ee78e8..04e357a 100644 --- a/capsulflask/hub_model.py +++ b/capsulflask/hub_model.py @@ -183,8 +183,9 @@ class CapsulFlaskHub(VirtualizationInterface): host = online_hosts[i] result = results[i] try: + current_app.logger.info(f"\n********5:\n{result.body}\n\n\n\n") result_body = json.loads(result.body) - for id, vm in result_body.items(): + for id, vm in result_body['vms'].items(): vm['host'] = host.id to_return[id] = vm except: