From b5abe2a49f7d5b7aafca985ac0cb6a01c256039e Mon Sep 17 00:00:00 2001 From: micafer Date: Wed, 3 Oct 2018 13:20:24 +0200 Subject: [PATCH] Solve WN issues --- IM/tosca/Tosca.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/IM/tosca/Tosca.py b/IM/tosca/Tosca.py index fde708ae8..218a2ddf6 100644 --- a/IM/tosca/Tosca.py +++ b/IM/tosca/Tosca.py @@ -225,7 +225,16 @@ def _order_deploys(self, radl): else: priv.append(d) - radl.deploys = pub + priv + # This is patch, we need a solution for that + wn = [] + fe = [] + for d in pub: + if "wn" in d.id: + wn.append(d) + else: + fe.append(d) + + radl.deploys = fe + wn + priv def _get_num_instances(self, sys_name, inf_info): """