Commit 986f94ea authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: really compare url strings

parent 77851c25
......@@ -43,7 +43,7 @@ allocation_cell_list = software_product.getFollowUpValue().Project_getSoftwarePr
# Only upgrade if there is no doubt (ie, only 1 url is allowed)
if len(allocation_cell_list) == 1:
if (allocation_cell_list[0].getSoftwareType() != instance_tree.getUrlString()):
if (allocation_cell_list[0].getSoftwareReleaseValue().getUrlString() != instance_tree.getUrlString()):
# XXX Upgrade
decision_title = 'A new upgrade is available for %s' % instance_tree.getTitle()
......@@ -53,7 +53,7 @@ if len(allocation_cell_list) == 1:
aggregate__uid=instance_tree.getUid()
)
if decision_in_progress:
if decision_in_progress is not None:
if 1:
raise NotImplementedError('reviewRegistration')
decision_in_progress.reviewRegistration(
......
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