diff options
| author | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-03-16 17:56:40 -0400 |
|---|---|---|
| committer | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-03-16 17:56:40 -0400 |
| commit | cc2d4728d32d016ef803d0def456cac6e315e8fa (patch) | |
| tree | 730830be188aa486537c0100f9510dc5cafb18de /nova/image | |
| parent | 3459cfb89bd90605e54fd1fb28b8b38089f3e236 (diff) | |
get started testing
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 15fca69b8..3b448db4b 100644 --- a/nova/image/glance.py +++ b/nova/image/glance.py @@ -37,8 +37,10 @@ GlanceClient = utils.import_class('glance.client.Client') class GlanceImageService(service.BaseImageService): """Provides storage and retrieval of disk image objects within Glance.""" - def __init__(self): - self.client = GlanceClient(FLAGS.glance_host, FLAGS.glance_port) + def __init__(self, client=None): + if client is None: + self.client = GlanceClient(FLAGS.glance_host, FLAGS.glance_port) + self.client = client def index(self, context): """ |
