diff --git a/module_build_service/common/submit.py b/module_build_service/common/submit.py index b0cf72ed..8988776e 100644 --- a/module_build_service/common/submit.py +++ b/module_build_service/common/submit.py @@ -102,11 +102,11 @@ def fetch_mmd(url, branch=None, allow_local_url=False, whitelist_url=False, mand if isinstance(stream_or_packager, Modulemd.ModuleStream): # this is a ModuleStreamV2 object stream_or_packager = stream_or_packager.copy(stream_or_packager.get_module_name(), - scm.branch) + scm_stream) else: # this is a PackagerV3 object stream_or_packager = stream_or_packager.copy() - stream_or_packager.set_stream_name(scm.branch) + stream_or_packager.set_stream_name(scm_stream) # If the version is in the modulemd, throw an exception since the version # since the version is generated by MBS