Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
populate glance 'name' field through ec2-register
For images registered via RegisterImage in the ec2 api, populate glance's 'name' field. If the name is not supplied in the ec2 request, then set it to be the location. This has the added value of 'glance index' now showing ec2 registered images. Previously, they were not listed because of the empty Name field. Additionally, when responding to DescribeImages in the ec2 api, populate the name field. Previously we were not populating this at all. In the case where there is no name, use image_location. Fixes bug 930314 Change-Id: I10bcac9ab298a2bf127b5228c62c3cf4f009abd6
- Loading branch information
1 parent
f0a172e
commit 4a2cf65
Showing
2 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters