mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 11:09:44 +08:00
Remove a bunch of unnecessary stuff.
This is because get_module() is already called *inside* the call to get_module_tag() and get_module_dependencies().
This commit is contained in:
@@ -96,7 +96,6 @@ def get_variant_dict(data):
|
||||
return result
|
||||
|
||||
|
||||
|
||||
def variant_dict_from_str(module_str):
|
||||
"""
|
||||
:param module_str: a string to match in PDC
|
||||
|
||||
@@ -42,14 +42,10 @@ def init(config, session, msg):
|
||||
build = rida.database.ModuleBuild.from_fedmsg(session, msg)
|
||||
pdc_session = rida.pdc.get_pdc_client_session(config)
|
||||
|
||||
build_data = build.json()
|
||||
log.debug("Getting module from pdc with input_data=%s" % build_data)
|
||||
module_info = rida.pdc.get_module(pdc_session, build_data)
|
||||
|
||||
module_info = build.json()
|
||||
log.debug("Received module_info=%s from pdc" % module_info)
|
||||
|
||||
tag = rida.pdc.get_module_tag(pdc_session, module_info)
|
||||
log.info("Found tag=%s for module %s-%s-%s" % (tag, build['name'], build['version'], build['release']))
|
||||
log.info("Found tag=%s for module %r" % (tag, build))
|
||||
|
||||
dependencies = rida.pdc.get_module_dependencies(pdc_session, module_info)
|
||||
builder = rida.builder.KojiModuleBuilder(build.name, config)
|
||||
|
||||
Reference in New Issue
Block a user