From 97d0aac60574dbc4b59deccbe4c97fbcae16ee90 Mon Sep 17 00:00:00 2001 From: Devin Carlen Date: Tue, 22 Jun 2010 21:42:58 -0700 Subject: [PATCH] Create DescribeImageAttribute api method --- nova/endpoint/cloud.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nova/endpoint/cloud.py b/nova/endpoint/cloud.py index 613dd8dd..8046d42e 100644 --- a/nova/endpoint/cloud.py +++ b/nova/endpoint/cloud.py @@ -555,16 +555,6 @@ class CloudController(object): result = images.modify(context, image_id, operation_type) return defer.succeed(result) - def modify_image_attribute(self, context, image_id, attribute, operation_type, **kwargs): - if attribute != 'launchPermission': - raise exception.ApiError('only launchPermission is supported') - if len(kwargs['user_group']) != 1 and kwargs['user_group'][0] != 'all': - raise exception.ApiError('only group "all" is supported') - if not operation_type in ['add', 'delete']: - raise exception.ApiError('operation_type must be add or delete') - result = images.modify(context, image_id, operation_type) - return defer.succeed(result) - def update_state(self, topic, value): """ accepts status reports from the queue and consolidates them """ # TODO(jmc): if an instance has disappeared from