瀏覽代碼

New style CELERY_REDIS_* configuration should take precedence over old style REDIS_* configuration.

Closes #508
Joshua "jag" Ginsberg 13 年之前
父節點
當前提交
b7c9547881
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/backends/redis.py

+ 1 - 1
celery/backends/redis.py

@@ -42,7 +42,7 @@ class RedisBackend(KeyValueStoreBackend):
 
         # For compatability with the old REDIS_* configuration keys.
         def _get(key):
-            for prefix in "REDIS_%s", "CELERY_REDIS_%s":
+            for prefix in "CELERY_REDIS_%s", "REDIS_%s":
                 try:
                     return conf[prefix % key]
                 except KeyError: