Commit 144605b4 authored by Gabriel Monnerat's avatar Gabriel Monnerat

rename variable to make sense

parent 4f65be8b
......@@ -418,7 +418,6 @@ class SlapTool(BaseTool):
elif movement.getResource() == \
portal_preferences.getPreferredInstanceHostingResource():
if movement.getSimulationState() == 'confirmed':
slap_partition._requested_state = 'started'
slap_partition._need_modification = 1
......@@ -460,7 +459,7 @@ class SlapTool(BaseTool):
setup_service = portal.restrictedTraverse(
portal_preferences.getPreferredInstanceSetupResource())
slave_query = ComplexQuery(Query(aggregate_portal_type="Slave Instance"),
hosting_query = ComplexQuery(Query(aggregate_portal_type="Slave Instance"),
Query(aggregate_relative_url=computer_partition_document.getRelativeUrl()),
# Search only for Confirmed and Stopped, the only one states that require
# buildout be re-updated.
......@@ -474,7 +473,7 @@ class SlapTool(BaseTool):
Query(default_resource_uid=setup_service.getUid()),
operator="AND")
query = ComplexQuery(slave_query, setup_query, operator="OR")
query = ComplexQuery(hosting_query, setup_query, operator="OR")
# Use getTrackingList
catalog_result = portal.portal_catalog(
......
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