From 2dfd1799aecb99f9310507e1ba20e075f6b0c67d Mon Sep 17 00:00:00 2001 From: dreadpirateshawn Date: Wed, 1 Oct 2014 07:59:02 -0700 Subject: [PATCH] AMI: Implement copy_image. (part 4, minor refactor for clarity) --- moto/ec2/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/moto/ec2/models.py b/moto/ec2/models.py index cf945f790..1cb23afbf 100644 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -604,9 +604,7 @@ class Ami(TaggedEC2Instance): self.description = description if description else source_ami.description self.launch_permission_groups = set() - self.autocreate_volume_and_snapshot() - def autocreate_volume_and_snapshot(self): # AWS auto-creates these, we should reflect the same. volume = ec2_backend.create_volume(15, "us-east-1a") self.ebs_snapshot = ec2_backend.create_snapshot(volume.id, "Auto-created snapshot for AMI %s" % self.id)