Commit f3cc36db authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: assert project reference is provided

parent 9a83861d
......@@ -31,6 +31,7 @@ if (portal.portal_activities.countMessageWithTag(tag) > 0):
raise NotImplementedError(tag)
# Ensure project is correctly set
assert project_reference, 'No project reference'
project_list = portal.portal_catalog.portal_catalog(portal_type='Project', reference=project_reference,
validation_state='validated', limit=2)
if len(project_list) != 1:
......
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