From patchwork Thu Jul 14 12:38:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 2689 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 73A5324259 for ; Thu, 14 Jul 2011 12:38:15 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id 3C181A18154 for ; Thu, 14 Jul 2011 12:38:15 +0000 (UTC) Received: by qyk30 with SMTP id 30so185043qyk.11 for ; Thu, 14 Jul 2011 05:38:14 -0700 (PDT) Received: by 10.229.68.200 with SMTP id w8mr1768944qci.114.1310647094668; Thu, 14 Jul 2011 05:38: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.229.217.78 with SMTP id hl14cs13593qcb; Thu, 14 Jul 2011 05:38:14 -0700 (PDT) Received: by 10.227.195.13 with SMTP id ea13mr2113755wbb.0.1310647093368; Thu, 14 Jul 2011 05:38:13 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id p16si502381wbh.100.2011.07.14.05.38.13; Thu, 14 Jul 2011 05:38:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QhLBE-0002jA-Qr for ; Thu, 14 Jul 2011 12:38:12 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id C97D62E8043 for ; Thu, 14 Jul 2011 12:38:12 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-tool X-Launchpad-Branch: ~linaro-validation/lava-tool/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 162 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-tool/trunk] Rev 162: Strip the token read from token file when using add-auth command Message-Id: <20110714123812.6523.23944.launchpad@loganberry.canonical.com> Date: Thu, 14 Jul 2011 12:38:12 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13405"; Instance="initZopeless config overlay" X-Launchpad-Hash: 1815304ee859b479dff413810510decb84b79890 ------------------------------------------------------------ revno: 162 fixes bug(s): https://launchpad.net/bugs/810422 committer: Zygmunt Krynicki branch nick: trunk timestamp: Thu 2011-07-14 14:30:52 +0200 message: Strip the token read from token file when using add-auth command modified: lava_tool/commands/auth.py --- lp:lava-tool https://code.launchpad.net/~linaro-validation/lava-tool/trunk You are subscribed to branch lp:lava-tool. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-tool/trunk/+edit-subscription === modified file 'lava_tool/commands/auth.py' --- lava_tool/commands/auth.py 2011-06-17 13:33:45 +0000 +++ lava_tool/commands/auth.py 2011-07-14 12:30:52 +0000 @@ -92,7 +92,7 @@ except IOError as ex: raise LavaCommandError( "opening %r failed: %s" % (self.args.token_file, ex)) - token = token_file.read() + token = token_file.read().strip() else: if parsed_host.password: token = parsed_host.password