~renukaapte/nova/iscsi-refactor-d2

Viewing all changes in revision 1255.

  • Committer: Tarmac
  • Author(s): John Tran
  • Date: 2011-07-09 23:56:32 UTC
  • mfrom: (1250.1.2 lp744519)
  • Revision ID: tarmac-20110709235632-miln7brwbpm1qwtw
flaw in ec2 cloud api, _get_image method , if doing a search for aki-0000009, yet that image name doesn't exist, it strips off aki- and looks for any image_id 0000009 and if there was an image match that happens to be an ami instead of aki, it will go ahead and deregister the ami instead. That behavior is unintended, so added logic to ensure that the original request image_id matches the type of image being returned from database by matching against container_format attr

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: