Skip to content

Commit

Permalink
Making prefetcher call create_stores.
Browse files Browse the repository at this point in the history
Fixes bug 888383

(cherry picked from commit f394327)

Change-Id: Ia3adc6a30f16f889cd344f8cb3fca4a071871fe4
  • Loading branch information
rconradharris authored and markmc committed Nov 18, 2011
1 parent a0ecd5c commit 3f08f39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions glance/image_cache/prefetcher.py
Expand Up @@ -27,6 +27,12 @@
from glance.common import context
from glance.image_cache import ImageCache
from glance import registry
import glance.store
import glance.store.filesystem
import glance.store.http
import glance.store.rbd
import glance.store.s3
import glance.store.swift
from glance.store import get_from_backend


Expand All @@ -36,6 +42,7 @@
class Prefetcher(object):
def __init__(self, options):
self.options = options
glance.store.create_stores(options)
self.cache = ImageCache(options)

def fetch_image_into_cache(self, image_id):
Expand Down

0 comments on commit 3f08f39

Please sign in to comment.