#1174 Fix the type of the file passed to submit_module_build_from_yaml()
Closed a month ago by otaylor. Opened a month ago by otaylor.
otaylor/fm-orchestrator yaml-submit-encoding  into  master

@@ -148,7 +148,7 @@ 

              raise IOError("Provided modulemd file is not a yaml file.")


          yaml_file_path = os.path.abspath(yaml_file)

-         with open(yaml_file_path) as fd:

+         with open(yaml_file_path, "rb") as fd:

              filename = os.path.basename(yaml_file)

              handle = FileStorage(fd)

              handle.filename = filename

When starting a local build, we now need to pass a raw stream to
submit_module_build_from_yaml, not a text stream. (This fixes a
regression where local builds haven't worked since 0f76fd5)

Should be equivalent to PR #1172

Pull-Request has been closed by otaylor

a month ago