Commit ad1c5d6b authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: assert project reference is provided

parent 4a978cf6
......@@ -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