Commit c18acab7 authored by Łukasz Nowak's avatar Łukasz Nowak

Drop needless complexity.

parent 1d5cf8e8
......@@ -60,7 +60,6 @@ portal.portal_catalog.searchAndActivate(\n
left_join_list=select_dict.keys(),\n
\n
method_id=\'SoftwareInstance_tryToAllocatePartition\',\n
method_kw={\'manual\': False},\n
packet_size=1, # Separate calls to many transactions\n
activate_kw={\'tag\': tag}\n
)\n
......
......@@ -92,13 +92,9 @@ if software_instance.getValidationState() != \'validated\' \\\n
try:\n
computer_partition_url = assignComputerPartition(software_instance)\n
except ValueError:\n
if manual:\n
raise\n
# It was not possible to find free Computer Partition\n
markHistory(software_instance, \'Allocation failed: no free Computer Partition\')\n
except Unauthorized, e:\n
if manual:\n
raise\n
# user has bad balance\n
markHistory(software_instance, \'Allocation failed: %s\' % e)\n
else:\n
......@@ -106,8 +102,6 @@ else:\n
try:\n
software_instance.Base_checkConsistency()\n
except ValidationFailed:\n
if manual:\n
raise\n
# order not ready yet\n
markHistory(software_instance, \'Allocation failed: consistency failed\')\n
else:\n
......@@ -116,7 +110,7 @@ else:\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>manual=True</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
112
\ No newline at end of file
113
\ 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