forked from 3wordchant/capsul-flask
fix remnants of list_ids being an async operation
This commit is contained in:
@ -156,11 +156,10 @@ class CapsulFlaskHub(VirtualizationInterface):
|
||||
all_valid = False
|
||||
if not all_valid:
|
||||
result_json_string = json.dumps({"error_message": "invalid capsul id returned"})
|
||||
current_app.logger.error(f"""error reading ids for list_ids operation {operation_id}, host {host.id}""")
|
||||
current_app.logger.error(f"""error reading ids for list_ids operation, host {host.id}""")
|
||||
else:
|
||||
result_json_string = json.dumps({"error_message": "invalid response, missing 'ids' list"})
|
||||
get_model().update_host_operation(host.id, operation_id, "invalid_response_from_host", result_json_string)
|
||||
current_app.logger.error(f"""missing 'ids' list for list_ids operation {operation_id}, host {host.id}""")
|
||||
current_app.logger.error(f"""missing 'ids' list for list_ids operation, host {host.id}""")
|
||||
except:
|
||||
# no need to do anything here since if it cant be parsed then generic_operation will handle it.
|
||||
pass
|
||||
|
Reference in New Issue
Block a user