Skip to content

Commit d4b76c5

Browse files
committed
removing generation field from final output object
1 parent c8a1bb8 commit d4b76c5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

cwltool/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,9 @@ def locToPath(p):
915915

916916
visit_class(out, ("File", "Directory"), locToPath)
917917

918+
# Unsetting the Generation fron final output object
919+
visit_class(out,("File",), MutationManager().unset_generation)
920+
918921
if isinstance(out, six.string_types):
919922
stdout.write(out)
920923
else:

cwltool/mutation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,7 @@ def set_generation(self, obj):
6767
loc = obj["location"]
6868
current = self.generations.get(loc, MutationState(0,[], ""))
6969
obj[_generation] = current.generation
70+
71+
def unset_generation(self, obj):
72+
# type: (Dict) -> None
73+
obj.pop(_generation, None)

0 commit comments

Comments
 (0)