mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
don't delete shutting down ec2 instances
This commit is contained in:
parent
36029428a7
commit
802235d003
1 changed files with 3 additions and 1 deletions
|
@ -210,7 +210,9 @@ class CloudTest(ShellCase):
|
|||
'''
|
||||
query = self.query_instances()
|
||||
for q in query:
|
||||
if q.startswith(self.instance_name) and not q == self.instance_name:
|
||||
# Verify but this is a new name and not a shutting down ec2 instance
|
||||
if q.startswith(self.instance_name) and not (q == self.instance_name) \
|
||||
and not (q.split('-')[-1].startswith('DEL')):
|
||||
return q
|
||||
|
||||
def _ensure_deletion(self, instance_name=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue