Commit 73c3ed27 authored by Romain Courteaud's avatar Romain Courteaud

Fix capacity calculation.

The category table does not index any non strict link to the computer. It is
not possible in such case to directly use the uid value.
parent ebf34872
......@@ -97,7 +97,7 @@ if can_allocate:\n
consumed_capacity = 0\n
\n
for instance in portal.portal_catalog.portal_catalog(\n
default_aggregate_uid=computer.getUid(),\n
default_aggregate_relative_url=\'%s/%%\' % computer.getRelativeUrl(),\n
portal_type=[\'Software Instance\', \'Slave Instance\'],\n
validation_state=\'validated\'):\n
\n
......
229
\ No newline at end of file
230
\ No newline at end of file
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