Browse Source

prism-log-extract bug fix: model_file field does not always need to be present.

accumulation-v4.7
Dave Parker 6 years ago
parent
commit
74416f343c
  1. 6
      prism/etc/scripts/prism-log-extract

6
prism/etc/scripts/prism-log-extract

@ -129,11 +129,7 @@ def grep_for_info_file(logFile, fields):
info[field] = os.path.basename(info[field])
if 'type' in field_details and field_details['type'] in ['string', 'file']:
info[field] = '"' + info[field] + '"'
# If there is not at least a model_file, we assume something went wrong
if (info['model_file']):
return [info]
else:
return []
return [info]
# Print info from a log, i.e. a list of fields, comma-separated
def print_info(info, fields):

Loading…
Cancel
Save