From ca5a8033e54ac049448c4c36394d80c588640668 Mon Sep 17 00:00:00 2001 From: acsbendi Date: Tue, 15 Jan 2019 17:37:22 +0100 Subject: [PATCH] Implemented providing ami_launch_index to the new Instance's constructor. --- moto/ec2/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moto/ec2/models.py b/moto/ec2/models.py index cc333e790..11ad8b101 100755 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -720,6 +720,7 @@ class InstanceBackend(object): instance_tags = tags.get('instance', {}) for index in range(count): + kwargs["ami_launch_index"] = index new_instance = Instance( self, image_id,