diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-03-15 09:29:46 -0700 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-03-15 09:29:46 -0700 |
| commit | 10ae2e194e2c429620407ce5be7ce59ac5ccd761 (patch) | |
| tree | 8b4c11064bf3d989bd6d1a4d843f9f9264ad0e7d /nova/api | |
| parent | eab99bbcdb02aa9bd330b01f2d27a297ab6b7f2e (diff) | |
| parent | 6f72ba3d88f31e6336725bcffe47fa2bd5f1dba0 (diff) | |
| download | nova-10ae2e194e2c429620407ce5be7ce59ac5ccd761.tar.gz nova-10ae2e194e2c429620407ce5be7ce59ac5ccd761.tar.xz nova-10ae2e194e2c429620407ce5be7ce59ac5ccd761.zip | |
exception fixup
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: |
