Don't try to split a list of memcache servers
The memcache_servers configuration option is declared as a ListOpt, but when used in AuthProtocol.__init__(), we treat it as a string to be split on ',', which is wrong. Remove the .split(). No test is added because the memcache package may not be installed, and I cannot see an easy method to only test this clause if it is available. Fixes bug 1086125. Change-Id: Ifb0a18017d2407b3ccb2188b1a704c26997ba594
This commit is contained in:
@@ -268,7 +268,7 @@ class AuthProtocol(object):
|
|||||||
import memcache
|
import memcache
|
||||||
import iso8601
|
import iso8601
|
||||||
LOG.info('Using memcache for caching token')
|
LOG.info('Using memcache for caching token')
|
||||||
self._cache = memcache.Client(memcache_servers.split(','))
|
self._cache = memcache.Client(memcache_servers)
|
||||||
self._iso8601 = iso8601
|
self._iso8601 = iso8601
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
LOG.warn('disabled caching due to missing libraries %s', e)
|
LOG.warn('disabled caching due to missing libraries %s', e)
|
||||||
|
Reference in New Issue
Block a user