From patchwork Wed Jan 30 18:49:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 14368 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 D5B7123E2E for ; Wed, 30 Jan 2013 18:55:45 +0000 (UTC) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by fiordland.canonical.com (Postfix) with ESMTP id 8109FA19208 for ; Wed, 30 Jan 2013 18:55:45 +0000 (UTC) Received: by mail-vc0-f175.google.com with SMTP id fw7so1211544vcb.34 for ; Wed, 30 Jan 2013 10:55:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:content-type:mime-version:x-launchpad-project :x-launchpad-branch:x-launchpad-message-rationale :x-launchpad-branch-revision-number:x-launchpad-notification-type:to :from:subject:message-id:date:reply-to:sender:errors-to:precedence :x-generated-by:x-launchpad-hash:x-gm-message-state; bh=6KsO4vdZ4epfqibkcVSbrKPfKiGOsKjmjSk4gHVLJTU=; b=n5SdvjwUUi1ui4HKzLdE/KIl1mey75OD8SVWS0JEHFqPQd8uoAkaeqspqRYuVxeJIg BTR1G6X2A75PhyBBFtDHvXj6CnJo13esU8C8DyxZpQhuhxIEC6slb+0SL7HKyIhZByoV DA71Fu2ed4MyqtC1Lc9pwF/WhIe34xSe9hiQf+qL3ltfKdnvBpWFo/QmgexVfjyXYig1 wc8Fh3eIOK2Zli3wEON/WtN3cBEcbtoqnYgL/SMwlis65UHs65BMQUeOulQKasvOvKnx bXT9LZzuOvdaXJ6/NFbJOrArRaxFVLM1aff2F+nAW+EAiLFsKuxCUJ5cuPv4w7nCAszT vXtg== X-Received: by 10.58.232.226 with SMTP id tr2mr1448838vec.48.1359572144968; Wed, 30 Jan 2013 10:55:44 -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.58.252.8 with SMTP id zo8csp24423vec; Wed, 30 Jan 2013 10:55:44 -0800 (PST) X-Received: by 10.194.76.237 with SMTP id n13mr10948512wjw.57.1359572143392; Wed, 30 Jan 2013 10:55:43 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id eg6si2309678wib.111.2013.01.30.10.55.42 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 30 Jan 2013 10:55:43 -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 1U0cov-0001jt-Sz for ; Wed, 30 Jan 2013 18:55:41 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 09FF4E0642 for ; Wed, 30 Jan 2013 18:49:14 +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: 551 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 551: yet another boot commands goof Message-Id: <20130130184914.19028.82818.launchpad@ackee.canonical.com> Date: Wed, 30 Jan 2013 18:49:14 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16455"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 1853e18c49583812728429629c55d74c1cf34402 X-Gm-Message-State: ALoCoQk8ufHYTp3/E09p47J3MNN1aiSusplyiQh7ngI/73nJwJsFKTBairvssgkiye0blVV4tt9j ------------------------------------------------------------ revno: 551 committer: Andy Doan branch nick: lava-dispatcher timestamp: Wed 2013-01-30 12:45:16 -0600 message: yet another boot commands goof the last fix assumed your boot_cmds was a predefined variable we have defined in our config.py code. This changes it to just search using the configparser so any boot_cmd can be defined and supported in config files modified: lava_dispatcher/__init__.py lava_dispatcher/device/master.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/__init__.py' --- lava_dispatcher/__init__.py 2013-01-30 04:34:29 +0000 +++ lava_dispatcher/__init__.py 2013-01-30 18:45:16 +0000 @@ -18,4 +18,4 @@ # along # with this program; if not, see . -__version__ = (0, 32, 0, "final", 0) +__version__ = (0, 32, 2, "final", 0) === modified file 'lava_dispatcher/device/master.py' --- lava_dispatcher/device/master.py 2013-01-28 23:43:30 +0000 +++ lava_dispatcher/device/master.py 2013-01-30 18:45:16 +0000 @@ -416,7 +416,7 @@ boot_cmds = options['boot_cmds'].value logging.info('boot_cmds attribute: %s', boot_cmds) - boot_cmds = getattr(self.config, boot_cmds) + boot_cmds = self.config.cp.get('__main__', boot_cmds) self._boot(string_to_list(boot_cmds.encode('ascii'))) def _boot(self, boot_cmds):