Skip to content

Commit b1aac9f

Browse files
authored
Doc object from stdin (#391)
Use yaml.round_trip_load()
1 parent b049635 commit b1aac9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ def load_job_order(args, t, stdin, print_input_deps=False, relative_deps=False,
431431
if len(args.job_order) == 1 and args.job_order[0][0] != "-":
432432
job_order_file = args.job_order[0]
433433
elif len(args.job_order) == 1 and args.job_order[0] == "-":
434-
job_order_object = yaml.load(stdin)
435-
job_order_object, _ = loader.resolve_all(job_order_object, "")
434+
job_order_object = yaml.round_trip_load(stdin) # type: ignore
435+
job_order_object, _ = loader.resolve_all(job_order_object, file_uri(os.getcwd()) + "/")
436436
else:
437437
job_order_file = None
438438

0 commit comments

Comments
 (0)