Alternative fix for missing metadata on datasets that report output size 0

This commit is contained in:
mvdbeek
2018-01-19 08:23:50 +01:00
parent 1a43ef5b83
commit 16344a62d3
+2 -2
View File
@@ -1251,7 +1251,7 @@ class JobWrapper(object, HasResourceParameters):
if job.states.ERROR == final_job_state:
dataset.blurb = "error"
dataset.mark_unhidden()
elif not purged and dataset.has_data():
elif not purged:
# If the tool was expected to set the extension, attempt to retrieve it
if dataset.ext == 'auto':
dataset.extension = context.get('ext', 'data')
@@ -1299,7 +1299,7 @@ class JobWrapper(object, HasResourceParameters):
except Exception:
dataset.set_peek()
else:
# Handle an empty dataset.
# Handle purged datasets.
dataset.blurb = "empty"
if dataset.ext == 'auto':
dataset.extension = context.get('ext', 'txt')