diff options
| author | Dan Prince <dan.prince@rackspace.com> | 2011-08-16 15:04:27 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-08-16 15:04:27 +0000 |
| commit | 7e4d35db17a6d129fe9cbfd3d4ffaeb96fd1fc69 (patch) | |
| tree | 2b2ad6d693f21efce6514d46e34514a383e5296f /nova/api | |
| parent | 76eebe86f383989ab012b9ad8a5b6fc4bbfee4af (diff) | |
| parent | 0801dee7b05463b40bf66ee5911c92ac5e4aabc8 (diff) | |
| download | nova-7e4d35db17a6d129fe9cbfd3d4ffaeb96fd1fc69.tar.gz nova-7e4d35db17a6d129fe9cbfd3d4ffaeb96fd1fc69.tar.xz nova-7e4d35db17a6d129fe9cbfd3d4ffaeb96fd1fc69.zip | |
Updated the EC2 metadata controller so that it returns the correct value for instance-type metadata.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/cloud.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index 87bba58c3..9aebf92e3 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -305,7 +305,7 @@ class CloudController(object): 'hostname': hostname, 'instance-action': 'none', 'instance-id': ec2_id, - 'instance-type': instance_ref['instance_type'], + 'instance-type': instance_ref['instance_type']['name'], 'local-hostname': hostname, 'local-ipv4': address, 'placement': {'availability-zone': availability_zone}, |
