Implementation of blueprint stackalytics-core
This change incorporates the following: * Config for most of OS projects * Configure filtering of robots commits * Clean-up dashboard module * Layout is clean-up * Remove unused styles and scripts * Factories replaced by factory methods Change-Id: I1a719b356a5e3275d14bbceae198a1d0cb6dbbbd
This commit is contained in:
@@ -186,11 +186,10 @@ class MemcachedStorage(RuntimeStorage):
|
||||
self.commit_id_index[record['commit_id']] = record['record_id']
|
||||
|
||||
|
||||
class RuntimeStorageFactory(object):
|
||||
|
||||
@staticmethod
|
||||
def get_storage(uri):
|
||||
LOG.debug('Runtime storage is requested for uri %s' % uri)
|
||||
match = re.search(r'^memcached:\/\/', uri)
|
||||
if match:
|
||||
return MemcachedStorage(uri)
|
||||
def get_runtime_storage(uri):
|
||||
LOG.debug('Runtime storage is requested for uri %s' % uri)
|
||||
match = re.search(r'^memcached:\/\/', uri)
|
||||
if match:
|
||||
return MemcachedStorage(uri)
|
||||
else:
|
||||
raise Exception('Unknown runtime storage uri %s' % uri)
|
||||
|
Reference in New Issue
Block a user