Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple EC2 API from using instance id
Continuation of 0dc3269 Some code in ec2 api use Instance.id rather than InstanceIdMapping.id directly while converting ec2 id to an instance object. This is very dangerous if Instance.id is not equal to InstanceIdMapping.id for the same instance uuid. To avoid the id mapping confusion, this patch: * uses instance_id_mappings.id instead of instances.id * uses instance_uuid in ec2utils.id_to_ec2_inst_id * removes ec2utils.ec2_instance_id_to_uuid Fixes bug 1145490 Change-Id: I22638f667c18eefe542b03e31f1a3aa2ce782db7 (cherry picked from commit 79cc2a2)
- Loading branch information
1 parent
8c4df00
commit 67eb495
Showing
5 changed files
with
39 additions
and
38 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
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
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