libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1337771 - /libcloud/trunk/libcloud/storage/drivers/atmos.py
Date Sun, 13 May 2012 04:09:03 GMT
Author: tomaz
Date: Sun May 13 04:09:03 2012
New Revision: 1337771

URL: http://svn.apache.org/viewvc?rev=1337771&view=rev
Log:
Fix a bug - add missing argument.

Modified:
    libcloud/trunk/libcloud/storage/drivers/atmos.py

Modified: libcloud/trunk/libcloud/storage/drivers/atmos.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/storage/drivers/atmos.py?rev=1337771&r1=1337770&r2=1337771&view=diff
==============================================================================
--- libcloud/trunk/libcloud/storage/drivers/atmos.py (original)
+++ libcloud/trunk/libcloud/storage/drivers/atmos.py Sun May 13 04:09:03 2012
@@ -370,13 +370,13 @@ class AtmosDriver(StorageDriver):
             ('uid', self.key),
             ('expires', expiry),
         ]
-        params.append(('signature', self._cdn_signature(path, params)))
+        params.append(('signature', self._cdn_signature(path, params, expiry)))
 
         params = urlencode(params)
         path = self.path + path
         return urlparse.urlunparse((protocol, self.host, path, '', params, ''))
 
-    def _cdn_signature(self, path, params):
+    def _cdn_signature(self, path, params, expiry):
         key = base64.b64decode(self.secret)
         signature = '\n'.join(['GET', path.lower(), self.key, expiry])
         signature = hmac.new(key, signature, hashlib.sha1).digest()



Mime
View raw message