diff mbox

[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
State Accepted
Headers show

Commit Message

Zygmunt Krynicki July 14, 2011, 12:38 p.m. UTC
------------------------------------------------------------
revno: 162
fixes bug(s): https://launchpad.net/bugs/810422
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
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
diff mbox

Patch

=== 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