Commit 8e4169d6 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Only search for instances which aren't already destroyed

parent d500e301
...@@ -5,7 +5,8 @@ portal.portal_catalog.searchAndActivate( ...@@ -5,7 +5,8 @@ portal.portal_catalog.searchAndActivate(
validation_state="validated", validation_state="validated",
specialise_validation_state="archived", specialise_validation_state="archived",
method_id='Instance_tryToGarbageCollect', method_id='Instance_tryToGarbageCollect',
activate_kw={'tag': tag} activate_kw={'tag': tag},
**{"slapos_item.slap_state": ("start_requested", "stop_requested")}
) )
context.activate(after_tag=tag).getId() context.activate(after_tag=tag).getId()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment