diff mbox

[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
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson March 5, 2012, 3:14 a.m. UTC
------------------------------------------------------------
revno: 140
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
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
diff mbox

Patch

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