Skip to content

Commit 8526050

Browse files
committed
main.py: print complete pack dict
1 parent b4aa8d5 commit 8526050

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cwltool/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -655,10 +655,8 @@ def loadref(b, u):
655655
def print_pack(document_loader, processobj, uri, metadata):
656656
# type: (Loader, Union[Dict[Text, Any], List[Dict[Text, Any]]], Text, Dict[Text, Any]) -> str
657657
packed = pack(document_loader, processobj, uri, metadata)
658-
if len(packed["$graph"]) > 1:
659-
return json.dumps(packed, indent=4)
660-
else:
661-
return json.dumps(packed["$graph"][0], indent=4)
658+
659+
return json.dumps(packed, indent=4)
662660

663661

664662
def versionstring():

0 commit comments

Comments
 (0)