Explorar o código

Fixed error in protocol handling for the riak backend

NoKriK %!s(int64=11) %!d(string=hai) anos
pai
achega
1ac10f3b8f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/backends/riak.py

+ 1 - 1
celery/backends/riak.py

@@ -91,7 +91,7 @@ class RiakBackend(KeyValueStoreBackend):
         self.host = uhost or config.get('host', self.host)
         self.port = int(uport or config.get('port', self.port))
         self.bucket_name = ubucket or config.get('bucket', self.bucket_name)
-        self.protocol = uprot or config.get('protocol', self.protocol)
+        self.protocol = protocol or config.get('protocol', self.protocol)
 
         # riak bucket must be ascii letters or numbers only
         if not Validators.validate_riak_bucket_name(self.bucket_name):