From 872320a230f8b1b1795f9794c773bd2878389c63 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Thu, 13 May 2021 11:05:35 -0400 Subject: [PATCH] use scm_stream instead of scm.branch --- module_build_service/common/submit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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