diff mbox

[Branch,~linaro-validation/lava-tool/trunk] Rev 179: fix including token in url

Message ID 20121023220311.1659.52552.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson Oct. 23, 2012, 10:03 p.m. UTC
------------------------------------------------------------
revno: 179
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Wed 2012-10-24 11:02:14 +1300
message:
  fix including token in url
modified:
  lava_tool/authtoken.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/authtoken.py'
--- lava_tool/authtoken.py	2012-06-26 02:04:30 +0000
+++ lava_tool/authtoken.py	2012-10-23 22:02:14 +0000
@@ -76,7 +76,7 @@ 
         user = None
         auth, host = urllib.splituser(host)
         if auth:
-            user, password = urllib.splitpasswd(auth)
+            user, token = urllib.splitpasswd(auth)
         url = self._scheme + "://" + host + handler
         if user is not None and token is None:
             token = self.auth_backend.get_token_for_endpoint(user, url)