From patchwork Mon Mar 5 03:14:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 7084 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 5CCE923E2F for ; Mon, 5 Mar 2012 03:14:13 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 11DE5A18077 for ; Mon, 5 Mar 2012 03:14:12 +0000 (UTC) Received: by iage36 with SMTP id e36so6765358iag.11 for ; Sun, 04 Mar 2012 19:14:12 -0800 (PST) Received: from mr.google.com ([10.42.147.199]) by 10.42.147.199 with SMTP id o7mr12158322icv.50.1330917252594 (num_hops = 1); Sun, 04 Mar 2012 19:14:12 -0800 (PST) Received: by 10.42.147.199 with SMTP id o7mr10014631icv.50.1330917252516; Sun, 04 Mar 2012 19:14:12 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.53.18 with SMTP id k18csp15265ibg; Sun, 4 Mar 2012 19:14:11 -0800 (PST) Received: by 10.180.100.33 with SMTP id ev1mr12155078wib.3.1330917251253; Sun, 04 Mar 2012 19:14:11 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id l69si9538791weq.55.2012.03.04.19.14.10 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Mar 2012 19:14:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1S4ONG-0007mB-5p for ; Mon, 05 Mar 2012 03:14:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 1E5EBE0463 for ; Mon, 5 Mar 2012 03:14:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-scheduler X-Launchpad-Branch: ~linaro-validation/lava-scheduler/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 140 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-scheduler/trunk] Rev 140: tweak health job construction - TestJob.description comes from the job_name field in the json Message-Id: <20120305031410.9151.65794.launchpad@ackee.canonical.com> Date: Mon, 05 Mar 2012 03:14:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14900"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 66a2f67ca3e0968d83996cdc297457ceedb7a72e X-Gm-Message-State: ALoCoQniRnrfvuE9CVimyEUbrwQeipYDj7JJC7GgoiSKqAbfg9va5/GHB5y005q3+emrCmxbGjTd ------------------------------------------------------------ revno: 140 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Mon 2012-03-05 16:12:25 +1300 message: tweak health job construction - TestJob.description comes from the job_name field in the json modified: lava_scheduler_daemon/dbjobsource.py --- lp:lava-scheduler https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk You are subscribed to branch lp:lava-scheduler. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription === modified file 'lava_scheduler_daemon/dbjobsource.py' --- lava_scheduler_daemon/dbjobsource.py 2012-02-23 02:51:18 +0000 +++ lava_scheduler_daemon/dbjobsource.py 2012-03-05 03:12:25 +0000 @@ -123,7 +123,7 @@ else: user = User.objects.get(username='lava-health') job_data = json.loads(job_json) - job_name = job_data.get('description') + job_name = job_data.get('job_name') job = TestJob( definition=job_json, submitter=user, description=job_name, health_check=True)