diff options
| author | Eric Windisch <eric@cloudscaling.com> | 2011-03-09 00:33:35 -0500 |
|---|---|---|
| committer | Eric Windisch <eric@cloudscaling.com> | 2011-03-09 00:33:35 -0500 |
| commit | 0a52e9c99e059ff91e71f3756e4875801b7db1dc (patch) | |
| tree | a0e465d3f38b3e84c254a7857edc9b5f288d02f0 /nova/api | |
| parent | a320b5df9f916adf8422ed312306c77570d392c2 (diff) | |
| parent | f42fda8566383bf0271e5b79e1385c41731639b9 (diff) | |
| download | nova-0a52e9c99e059ff91e71f3756e4875801b7db1dc.tar.gz nova-0a52e9c99e059ff91e71f3756e4875801b7db1dc.tar.xz nova-0a52e9c99e059ff91e71f3756e4875801b7db1dc.zip | |
Merge with main
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/__init__.py | 6 | ||||
| -rw-r--r-- | nova/api/openstack/servers.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py index 5adc2c075..4425ba3cd 100644 --- a/nova/api/ec2/__init__.py +++ b/nova/api/ec2/__init__.py @@ -198,6 +198,12 @@ class Requestify(wsgi.Middleware): try: # Raise KeyError if omitted action = req.params['Action'] + # Fix bug lp:720157 for older (version 1) clients + version = req.params['SignatureVersion'] + if int(version) == 1: + non_args.remove('SignatureMethod') + if 'SignatureMethod' in args: + args.pop('SignatureMethod') for non_arg in non_args: # Remove, but raise KeyError if omitted args.pop(non_arg) diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index c2bf42b72..85999764f 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -450,7 +450,7 @@ class Controller(wsgi.Controller): _("Cannot build from image %(image_id)s, status not active") % locals()) - if image['type'] != 'machine': + if image['disk_format'] != 'ami': return None, None try: |
