Przeglądaj źródła

Fixed error in protocol handling for the riak backend

NoKriK 11 lat temu
rodzic
commit
1ac10f3b8f
1 zmienionych plików z 1 dodań i 1 usunięć
  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):