diff --git a/master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_checkAndUpdateCapacityScope.xml b/master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_checkAndUpdateCapacityScope.xml index a0c944aee41a9244ca0fbde3671c6168c9ffc057..d19d448a627349c3b537e67c497643a751c54b60 100644 --- a/master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_checkAndUpdateCapacityScope.xml +++ b/master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_checkAndUpdateCapacityScope.xml @@ -107,9 +107,10 @@ if can_allocate:\n if software_release_url in software_release_capacity_dict:\n software_release_capacity = software_release_capacity_dict[software_release_url]\n else:\n - delivery_line = instance.getCausalityValue().getMovementList[0]\n - software_release = delivery_line.getAggregateValue(portal_type=\'Software Release\')\n - if software_release:\n + software_release = portal.portal_catalog.getResultValue(\n + portal_type=\'Software Release\',\n + url_string={\'query\': software_release_url, \'key\': \'ExactMatch\'})\n + if software_release is not None:\n software_release_capacity = software_release.getCapacityQuantity(1)\n software_release_capacity_dict[software_release_url] = software_release_capacity\n \n diff --git a/master/bt5/slapos_cloud/bt/revision b/master/bt5/slapos_cloud/bt/revision index 274ccca8ac98c5054b0d25975485dfad65ac8673..55596b29f71b5dc7661cb817cf27a56f12e13d6a 100644 --- a/master/bt5/slapos_cloud/bt/revision +++ b/master/bt5/slapos_cloud/bt/revision @@ -1 +1 @@ -209 \ No newline at end of file +210 \ No newline at end of file