mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
boto_ec2: missing region when checking existence of an EC2 instance
This commit is contained in:
parent
4ff54c6429
commit
3b202efadc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user