adds ami name when registering s3-based ami

boto docs indicates that name is only applied to EBS-based images, but that's
not true. this has been tested and populates the "AMI Name".
This commit is contained in:
Sonny Garcia 2013-11-07 17:53:53 -06:00
parent e91bf7fed4
commit e8b4334fdb

View file

@ -196,7 +196,7 @@ class RegisterAMI(Task):
image_manifest = ('{bucket}/{ami_name}.manifest.xml' image_manifest = ('{bucket}/{ami_name}.manifest.xml'
.format(bucket=info.manifest.image['bucket'], .format(bucket=info.manifest.image['bucket'],
ami_name=info.ami_name)) ami_name=info.ami_name))
info.image = info.connection.register_image(description=info.ami_description, info.image = info.connection.register_image(name=info.ami_name, description=info.ami_description,
architecture=arch, kernel_id=kernel_id, architecture=arch, kernel_id=kernel_id,
root_device_name='dev/sda1', root_device_name='dev/sda1',
image_location=image_manifest) image_location=image_manifest)