Commit b106cabb authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: (test) Only create Open Order for instances on Compute Node

parent 50d81df1
...@@ -891,7 +891,8 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -891,7 +891,8 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
# create fake open order, to bypass Service_getSubscriptionStatus # create fake open order, to bypass Service_getSubscriptionStatus
subscrible_item_list = [instance_tree] subscrible_item_list = [instance_tree]
if partition is not None: if (partition is not None) and \
(partition.getParentValue().getPortalType() =='Compute Node'):
subscrible_item_list.append(partition.getParentValue()) subscrible_item_list.append(partition.getParentValue())
for item in subscrible_item_list: for item in subscrible_item_list:
open_order = self.portal.open_sale_order_module.newContent( open_order = self.portal.open_sale_order_module.newContent(
......
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