diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 125: fix leak of job_name setting

Message ID 20110927103913.6591.43089.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Yongqin Liu Sept. 27, 2011, 10:39 a.m. UTC
------------------------------------------------------------
revno: 125
committer: Yongqin Liu <yongqin.liu@linaro.org>
branch nick: lava-dispatcher
timestamp: Tue 2011-09-27 18:36:53 +0800
message:
  fix leak of job_name setting
modified:
  lava_dispatcher/actions/launch_control.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_dispatcher/actions/launch_control.py'
--- lava_dispatcher/actions/launch_control.py	2011-09-26 11:37:32 +0000
+++ lava_dispatcher/actions/launch_control.py	2011-09-27 10:36:53 +0000
@@ -60,10 +60,10 @@ 
             attributes.update(self.context.test_data.get_metadata())
             test_run['attributes'] = attributes
         json_bundle = json.dumps(main_bundle)
-
+        job_name = self.context.job_data.get('job_name', "LAVA Results")
         try:
             print >> self.context.oob_file, 'dashboard-put-result:', \
-                  dashboard.put_ex(json_bundle, 'lava-dispatcher.bundle', stream)
+                  dashboard.put_ex(json_bundle, job_name, stream)
         except xmlrpclib.Fault, err:
             logging.warning("xmlrpclib.Fault occurred")
             logging.warning("Fault code: %d" % err.faultCode)