diff options
| author | Rick Harris <rick.harris@rackspace.com> | 2011-01-06 23:38:01 -0600 |
|---|---|---|
| committer | Rick Harris <rick.harris@rackspace.com> | 2011-01-06 23:38:01 -0600 |
| commit | 8de96296dfb22d0e6c491fcaf072210dfbaa67e8 (patch) | |
| tree | e83fb153ee36615966f6905c4eef99a9d2db7efc /nova/image | |
| parent | 3bf9bc6f6c0fbf90e3f4eab68a9bd99d85fcc422 (diff) | |
| download | nova-8de96296dfb22d0e6c491fcaf072210dfbaa67e8.tar.gz nova-8de96296dfb22d0e6c491fcaf072210dfbaa67e8.tar.xz nova-8de96296dfb22d0e6c491fcaf072210dfbaa67e8.zip | |
Removing some FIXMEs
Diffstat (limited to 'nova/image')
| -rw-r--r-- | nova/image/glance.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py index 9575574d1..be10f382b 100644 --- a/nova/image/glance.py +++ b/nova/image/glance.py @@ -26,17 +26,19 @@ import webob.exc from nova import flags from nova import exception +from nova import utils import nova.image.service FLAGS = flags.FLAGS +GlanceClient = utils.import_class('glance.client.Client') + class GlanceImageService(nova.image.service.BaseImageService): """Provides storage and retrieval of disk image objects within Glance.""" def __init__(self): - from glance.client import Client #TODO(sirp): lazy-import glance - self.client = Client(FLAGS.glance_host, FLAGS.glance_port) + self.client = GlanceClient(FLAGS.glance_host, FLAGS.glance_port) def index(self, context): """ |
