Commit 6425d6ff authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Test ComputeNode_getTicketRelatedList

parent 43d57bc8
......@@ -8,7 +8,8 @@ uid_list = [context.getUid()]
computer_partition_uid_list = [
cp.getUid() for cp in context.contentValues(portal_type="Compute Partition") if cp.getSlapState() == 'busy']
for instance in portal.portal_catalog(
if computer_partition_uid_list:
for instance in portal.portal_catalog(
portal_type="Software Instance",
select_dict={'specialise_uid': None},
specialise_portal_type="Instance Tree",
......
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