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:
Ralph Bean
2016-07-15 13:06:26 -04:00
parent d94042f8e7
commit 9e3efc3fb4
2 changed files with 2 additions and 7 deletions

View File

@@ -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

View File

@@ -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)