From patchwork Tue Oct 23 18:54:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 12450 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 9072023F6F for ; Tue, 23 Oct 2012 18:54:15 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 112E9A18827 for ; Tue, 23 Oct 2012 18:54:14 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so5605756iej.11 for ; Tue, 23 Oct 2012 11:54:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to: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=XAWwiv2gLuP54IMD0T3+FWFrwj/VNhZYsLuKQGsB+GY=; b=VO727dcPhca//eCUkdWh9eKMhqu3CvmhkNw8wA7IIBQzNjKZpZWnfSKrtXevCQb5iv a9S7T0MHznhQUrt2Sf5o2aYCiZBpDxL6JtA95PKTGAh8us7n+cxigehDBYfGmrXaV4KH 6PQDYWWagh2mQjf6ddv4ka7q6BYZnTi/vJbQhmHubUAl9ttahA1yBYx3wtP0kJiBmOl2 +pUvC7NKDJY1aYhQE9SJAAaPUbPfpayAhekIZoFTDaMaYSL6vd19cYCcr8Rhtm4acSNc YRWfUWmwsBtB5vV0oZYSSVkhHUxhAfc4rQrDe0YFO171COkuTlPqyMMMrM4IbHwAW7HE vz5g== Received: by 10.50.161.169 with SMTP id xt9mr20918333igb.62.1351018454498; Tue, 23 Oct 2012 11:54:14 -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.50.67.148 with SMTP id n20csp483305igt; Tue, 23 Oct 2012 11:54:13 -0700 (PDT) Received: by 10.180.94.226 with SMTP id df2mr95709wib.11.1351018452704; Tue, 23 Oct 2012 11:54:12 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id bu9si135030wib.23.2012.10.23.11.54.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Oct 2012 11:54:12 -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 1TQjcB-0001TN-Tv for ; Tue, 23 Oct 2012 18:54:11 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id CF469E0341 for ; Tue, 23 Oct 2012 18:54:11 +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: 417 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 417: string_to_list(boot_cmds) not working on older python Message-Id: <20121023185411.6891.83659.launchpad@ackee.canonical.com> Date: Tue, 23 Oct 2012 18:54:11 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16179"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 44a397f381d2a65e80221635b4671b85924a8009 X-Gm-Message-State: ALoCoQlS61rdTUvJqmcDL/bq+btVERMgCJNBHhUQ2zx1seFIp+l7G9EFE7VBPaF9ovriWHC+sIxP ------------------------------------------------------------ revno: 417 committer: Andy Doan branch nick: lava-dispatcher timestamp: Tue 2012-10-23 12:58:40 -0500 message: string_to_list(boot_cmds) not working on older python The version of python we are running in production hits a problem related to our new use of configglue. configglue passes a value like "boot_cmds" as a unicode string. Our string_to_list implementation on control isn't able to convert this to a list. 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 2012-10-23 05:27:27 +0000 +++ lava_dispatcher/__init__.py 2012-10-23 17:58:40 +0000 @@ -18,4 +18,4 @@ # along # with this program; if not, see . -__version__ = (0, 20, 0, "dev", 0) +__version__ = (0, 19, 3, "final", 0) === modified file 'lava_dispatcher/device/master.py' --- lava_dispatcher/device/master.py 2012-10-18 18:00:43 +0000 +++ lava_dispatcher/device/master.py 2012-10-23 17:58:40 +0000 @@ -424,7 +424,7 @@ boot_cmds = keyval[1].strip() boot_cmds = getattr(self.config, boot_cmds) - self._boot(string_to_list(boot_cmds)) + self._boot(string_to_list(boot_cmds.encode('ascii'))) def _boot(self, boot_cmds): try: