Commit 2edd197c authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_pdm: Fixup in case the instance tree has 2 instances on successor_list

See merge request nexedi/slapos.core!604
parents 92129fcd 0dc26ac5
Pipeline #32922 failed with stage
in 0 seconds
instance_tree = context
slap_state = ['start_requested', 'stop_requested']
if not context.getSlapState() in slap_state:
return None
software_instance = instance_tree.getSuccessorValue()
if not software_instance:
software_instance_list = [q for q in context.getSuccessorValueList() if q.getSlapState() in slap_state]
if len(software_instance_list) == 0:
return None
software_instance = software_instance_list[0]
software_release_list = context.SoftwareProduct_getSortedSoftwareReleaseList(
software_release_url=software_instance.getUrlString())
......
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