Commit b6e2640d authored by Paul Rich's avatar Paul Rich
Browse files

Preventing potential data loss in the event of a failed cleanup

If the child fetch succeeds but cleanup fails, make sure we use the
intially fetched data, rahter than replacing it with the now potentially
lost child data.
parent 539a3229
......@@ -248,6 +248,10 @@ def _call_sys_forker(basil_path, in_str):
complete = False
for child in children:
if child['complete']:
if child['lost_child'] and resp is None:
continue # Use the original response. This child object is
# invalid. If we never got one, then let the
# caller handle the error.
if child['exit_status'] != 0:
_logger.error("BASIL returned a status of %s",
child['exit_status'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment