Commit 7b610666 authored by Rafael Monnerat's avatar Rafael Monnerat

SlapTool: Get only slaves on start_requested state

parent 32796f5d
......@@ -257,9 +257,9 @@ class SlapTool(BaseTool):
return self.REQUEST.response
else:
return self._getCacheComputerInformation(computer_id, user)
# return self._getCacheComputerInformation(computer_id, user)
else:
slap_computer._software_release_list = []
if user_type == 'Software Instance':
computer = self.getPortalObject().portal_catalog.unrestrictedSearchResults(
portal_type='Computer', reference=computer_id,
......@@ -1537,6 +1537,7 @@ class SlapTool(BaseTool):
default_aggregate_uid=computer_partition.getUid(),
portal_type='Slave Instance',
validation_state="validated",
**{"slapos_item.slap_state": "start_requested"}
)
for slave_instance in slave_instance_sql_list:
slave_instance = _assertACI(slave_instance.getObject())
......
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