diff options
| author | andy <github@anarkystic.com> | 2010-06-24 04:11:55 +0100 |
|---|---|---|
| committer | andy <github@anarkystic.com> | 2010-06-24 04:11:55 +0100 |
| commit | 4d81110e10e186c3b72a5cc60073a2cba8a98696 (patch) | |
| tree | ba9a79cb3a089c426e99ec99b323150c98406817 /nova | |
| parent | bf9b83278f7b8f54f58b03b4cb0b4d0d6182f1fa (diff) | |
fix modify image attribute typo
Conflicts:
nova/endpoint/cloud.py
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/endpoint/cloud.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/endpoint/cloud.py b/nova/endpoint/cloud.py index 9ad5816b4..f14532b97 100644 --- a/nova/endpoint/cloud.py +++ b/nova/endpoint/cloud.py @@ -352,7 +352,7 @@ class CloudController(object): "args" : {"instance_id": instance_id, "mountpoint": volume['mountpoint']}}) except exception.NotFound: - # If the instance doesn't exist anymore, + # If the instance doesn't exist anymore, # then we need to call detach blind volume.finish_detach() else: @@ -601,8 +601,8 @@ class CloudController(object): raise exception.ApiError('attribute not supported: %s' % attribute) 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', 'remove']: - raise exception.ApiError('operation_type must be add or remove') + 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) |
