boto_ec2: missing region when checking existence of an EC2 instance

This commit is contained in:
Quan Tong Anh 2015-11-20 15:28:05 +07:00 committed by rallytime
parent 4ff54c6429
commit 3b202efadc

View File

@ -215,7 +215,9 @@ def exists(instance_id=None, name=None, tags=None, region=None, key=None,
salt myminion boto_ec2.exists myinstance
'''
instances = find_instances(instance_id=instance_id, name=name, tags=tags)
instances = find_instances(instance_id=instance_id, name=name, tags=tags,
region=region, key=key, keyid=keyid,
profile=profile)
if instances:
log.info('instance exists.')
return True