From 983609984c91484f850ba3304577c05ae6e4926b Mon Sep 17 00:00:00 2001 From: Nasenbaer Date: Fri, 18 Sep 2015 16:25:49 +0200 Subject: [PATCH] Renamed param name to ami_name to be consistent with aws --- salt/modules/boto_ec2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/modules/boto_ec2.py b/salt/modules/boto_ec2.py index 844b07d0c9..48614081eb 100644 --- a/salt/modules/boto_ec2.py +++ b/salt/modules/boto_ec2.py @@ -188,7 +188,7 @@ def create_image(ami_name, instance_id=None, instance_name=None, tags=None, regi return False -def find_images(name=None, executable_by=None, owners=None, image_ids=None, tags=None, +def find_images(ami_name=None, executable_by=None, owners=None, image_ids=None, tags=None, region=None, key=None, keyid=None, profile=None, return_objs=False): ''' @@ -215,8 +215,8 @@ def find_images(name=None, executable_by=None, owners=None, image_ids=None, tags if owners: filter_parameters['owners'] = [owners] - if name: - filter_parameters['filters']['name'] = name + if ami_name: + filter_parameters['filters']['name'] = ami_name if tags: for tag_name, tag_value in six.iteritems(tags):