Use ami variable instead in test

This commit is contained in:
Ch3LL 2019-08-16 17:14:31 -04:00
parent dc1ae52266
commit a3a39f3d68
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73

View file

@ -107,7 +107,7 @@ class EC2TestCase(TestCase, LoaderModuleMockMixin):
self.assertEqual(ec2.get_imageid(vm), ami)
# test ami-image
config.return_value = 'ami-1234'
config.return_value = ami
self.assertEqual(ec2.get_imageid(vm), ami)
# we should have only ran aws.query once when testing the aws filter