Commit 4a549f07 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_pdm: Only search by started_requested software installations for clean up

In case, destruction was already requested, the job of this alarm is already over, it can be considered,
cleaned.
parent 19b6c4a9
...@@ -7,7 +7,8 @@ portal = context.getPortalObject() ...@@ -7,7 +7,8 @@ portal = context.getPortalObject()
catalog_kw = dict( catalog_kw = dict(
portal_type='Software Installation', portal_type='Software Installation',
validation_state='validated', validation_state='validated',
url_string=context.getUrlString() url_string=context.getUrlString(),
**{"slapos_item.slap_state": "start_requested"}
) )
count = portal.portal_catalog.countResults( count = portal.portal_catalog.countResults(
......
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