Skip to content

Commit

Permalink
Fix metadata mapping in s3._s3_parse_manifest.
Browse files Browse the repository at this point in the history
Fixes bug #827617

Fixes incorrect output of the following euca2ools commands:
    'euca-describe-images'
    'euca-describe-instances'
Which occours when user published 'ami' image with 'ari&aki' or 'aki'
image(s).

Fixes minor typo:
    'manifext' -> 'manifest'

Change-Id: If32357e3ea6685476df9dbb6e74af710153457b9
  • Loading branch information
hudayou committed Jan 10, 2012
1 parent fa43949 commit 09fffd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nova/image/s3.py
Expand Up @@ -216,7 +216,7 @@ def _s3_parse_manifest(self, context, metadata, manifest):
def _translate_dependent_image_id(image_key, image_id):
image_id = ec2utils.ec2_id_to_id(image_id)
image_uuid = self.get_image_uuid(context, image_id)
properties['image_id'] = image_uuid
properties[image_key] = image_uuid

if kernel_id:
_translate_dependent_image_id('kernel_id', kernel_id)
Expand Down Expand Up @@ -248,7 +248,7 @@ def _translate_dependent_image_id(image_key, image_id):
return manifest, image, image_uuid

def _s3_create(self, context, metadata):
"""Gets a manifext from s3 and makes an image."""
"""Gets a manifest from s3 and makes an image."""

image_path = tempfile.mkdtemp(dir=FLAGS.image_decryption_dir)

Expand Down

0 comments on commit 09fffd6

Please sign in to comment.