#1172 Fix RHBZ#1686473
Merged 4 months ago by jkaluza. Opened 4 months ago by mprahl.

@@ -471,7 +471,7 @@ 

  

  def submit_module_build_from_yaml(username, handle, stream=None, skiptests=False,

                                    optional_params=None):

-     yaml_file = handle.read().decode("utf-8")

+     yaml_file = to_text_type(handle.read())

      mmd = load_mmd(yaml_file)

      dt = datetime.utcfromtimestamp(int(time.time()))

      def_name = str(os.path.splitext(os.path.basename(handle.filename))[0])

rebased onto 3d3da4d

4 months ago

Looks right and tested to work for me.

(PR #1174 took a different approach, this is probably at least as good.)

Pull-Request has been merged by jkaluza

4 months ago