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