mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Merge pull request #107 from zeridon/ami-list-performance
Improve ami listing performance
This commit is contained in:
commit
99dc07b44e
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