Commit fa2b1767 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Fix typo and ensure the slap_state is correct

parent 200c3d21
...@@ -4,7 +4,7 @@ from Products.ERP5Type.DateUtils import addToDate ...@@ -4,7 +4,7 @@ from Products.ERP5Type.DateUtils import addToDate
hosting_subscription = context hosting_subscription = context
portal = context.getPortalObject() portal = context.getPortalObject()
if hosting_subscription.getMonitorScope() == "disable": if hosting_subscription.getMonitorScope() == "disabled":
# Don't generate ticket if Monitor Scope is marked to disable # Don't generate ticket if Monitor Scope is marked to disable
return return
...@@ -32,6 +32,9 @@ for instance in software_instance_list: ...@@ -32,6 +32,9 @@ for instance in software_instance_list:
if (date_check_limit - instance.Base_getCachedCreationDate()) < 0: if (date_check_limit - instance.Base_getCachedCreationDate()) < 0:
continue continue
if instance.getSlapState() != "start_requested":
continue
computer_partition = instance.getAggregateValue() computer_partition = instance.getAggregateValue()
if computer_partition is not None: if computer_partition is not None:
has_newest_allocated_instance = True has_newest_allocated_instance = True
......
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