From patchwork Tue Sep 27 10:39:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongqin Liu X-Patchwork-Id: 4372 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 91F2723EF5 for ; Tue, 27 Sep 2011 10:39:15 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 7EBC3A18644 for ; Tue, 27 Sep 2011 10:39:15 +0000 (UTC) Received: by fxe23 with SMTP id 23so9720199fxe.11 for ; Tue, 27 Sep 2011 03:39:15 -0700 (PDT) Received: by 10.223.55.136 with SMTP id u8mr9412101fag.46.1317119955336; Tue, 27 Sep 2011 03:39:15 -0700 (PDT) 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.152.3.234 with SMTP id f10cs68086laf; Tue, 27 Sep 2011 03:39:14 -0700 (PDT) Received: by 10.227.128.85 with SMTP id j21mr7160542wbs.27.1317119953833; Tue, 27 Sep 2011 03:39:13 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id fl15si13877396wbb.139.2011.09.27.03.39.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Sep 2011 03:39:13 -0700 (PDT) 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 1R8V4D-0008Dt-2q for ; Tue, 27 Sep 2011 10:39:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 0B97AE230F for ; Tue, 27 Sep 2011 10:39:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 125 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 125: fix leak of job_name setting Message-Id: <20110927103913.6591.43089.launchpad@ackee.canonical.com> Date: Tue, 27 Sep 2011 10:39:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14041"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 433264bc60e995ed74c45c1f575852b4a9966279 ------------------------------------------------------------ revno: 125 committer: Yongqin Liu 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 === 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)