Commit 8e4169d6 by Rafael Monnerat

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

1 parent d500e301
......@@ -5,7 +5,8 @@ portal.portal_catalog.searchAndActivate(
validation_state="validated",
specialise_validation_state="archived",
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()
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!