mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-10 17:19:51 +00:00
Improve ami listing performance
* no need to list all available ami's, just self owned should be enough
This commit is contained in:
parent
65bdb34d77
commit
68d9ee1096
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class AMIName(Task):
|
|||
ami_name = info.manifest.image['name'].format(**info.manifest_vars)
|
||||
ami_description = info.manifest.image['description'].format(**info.manifest_vars)
|
||||
|
||||
images = info._ec2['connection'].get_all_images()
|
||||
images = info._ec2['connection'].get_all_images(owner=['self'])
|
||||
for image in images:
|
||||
if ami_name == image.name:
|
||||
msg = 'An image by the name {ami_name} already exists.'.format(ami_name=ami_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue