summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.py b/api.py
index cd909ac..ddbefe2 100755
--- a/api.py
+++ b/api.py
@@ -461,10 +461,10 @@ class Controller(API):
r = bottle.request
obj = r.json
kind = obj.get('object_kind')
+ status = obj.get('build_status')
r = obj.get('repository')
if kind == 'build' and r is not None:
name = r.get('name')
- status = r.get('build_status')
logging.info('Repository %s build status %s', name, status)