diff options
| author | Alex Meade <alex.meade@rackspace.com> | 2011-05-25 17:28:10 -0400 |
|---|---|---|
| committer | Alex Meade <alex.meade@rackspace.com> | 2011-05-25 17:28:10 -0400 |
| commit | c440aecaaacf3caa8683234022bc10836d232971 (patch) | |
| tree | c74cc1281947aaf169554de439cd4d42bc5fe5d0 | |
| parent | e4bf97ba29e8e5858f37cedb34e20ccd8e210bae (diff) | |
| download | nova-c440aecaaacf3caa8683234022bc10836d232971.tar.gz nova-c440aecaaacf3caa8683234022bc10836d232971.tar.xz nova-c440aecaaacf3caa8683234022bc10836d232971.zip | |
Added params to local and base image service
| -rw-r--r-- | nova/image/local.py | 4 | ||||
| -rw-r--r-- | nova/image/service.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nova/image/local.py b/nova/image/local.py index 918180bae..677d5302b 100644 --- a/nova/image/local.py +++ b/nova/image/local.py @@ -63,7 +63,7 @@ class LocalImageService(service.BaseImageService): images.append(unhexed_image_id) return images - def index(self, context): + def index(self, context, *args, **kwargs): filtered = [] image_metas = self.detail(context) for image_meta in image_metas: @@ -71,7 +71,7 @@ class LocalImageService(service.BaseImageService): filtered.append(meta) return filtered - def detail(self, context): + def detail(self, context, *args, **kwargs): images = [] for image_id in self._ids(): try: diff --git a/nova/image/service.py b/nova/image/service.py index ab6749049..5361cfc89 100644 --- a/nova/image/service.py +++ b/nova/image/service.py @@ -46,7 +46,7 @@ class BaseImageService(object): # the ImageService subclass SERVICE_IMAGE_ATTRS = [] - def index(self, context): + def index(self, context, *args, **kwargs): """List images. :returns: a sequence of mappings with the following signature @@ -55,7 +55,7 @@ class BaseImageService(object): """ raise NotImplementedError - def detail(self, context): + def detail(self, context, *args, **kwargs): """Detailed information about an images. :returns: a sequence of mappings with the following signature |
