From bb814d3d55613e12fb4583656fdffa9e19821860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Sat, 9 Jul 2016 14:45:40 +0200 Subject: [PATCH] rida.py cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Ĺ abata --- rida.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/rida.py b/rida.py index c4edd535..bf3f8fd9 100755 --- a/rida.py +++ b/rida.py @@ -29,9 +29,6 @@ This is the implementation of the orchestrator's public RESTful API. """ -# TODO; Validate the input modulemd & spec inputs. -# This requires SCM classes to be ready. - from flask import Flask, request import json import logging @@ -129,7 +126,6 @@ def submit_build(): module.state = "wait" db.session.add(module) db.session.commit() - # Publish to whatever bus we're configured to connect to. # This should notify ridad to start doing the work we just scheduled. rida.messaging.publish( @@ -138,10 +134,8 @@ def submit_build(): msg=module.json(), backend=conf.messaging, ) - - logging.info("%s submitted build of %s", username, mmd.name) - - # XXX: Okay, we're pretending here... + logging.info("%s submitted build of %s-%s-%s", username, mmd.name, + mmd.version, mmd.release) return json.dumps(module.json()), 201