diff --git a/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/nc/NodeCandidateUtils.java b/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/nc/NodeCandidateUtils.java index 3d26d19c274944a605830749479396670c4b21f1..3bf985a5af16a3f32123e8a11f654a1cb64432ae 100644 --- a/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/nc/NodeCandidateUtils.java +++ b/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/nc/NodeCandidateUtils.java @@ -300,16 +300,13 @@ public class NodeCandidateUtils { try { if (paCloud.getCloudProviderName().equals("openstack")){ - if((!entries.contains(pair)) && openstackOsList.contains(os)) { - entries.add(pair); - JSONArray nodeCandidates = nodeCandidatesCache.get(Quartet.with(paCloud, region, imageReq, "")); - nodeCandidates.forEach(nc -> { - JSONObject nodeCandidate = (JSONObject) nc; - EntityManagerHelper.persist(createLocation(nodeCandidate, paCloud)); - EntityManagerHelper.persist(createNodeCandidate(nodeCandidate, image, paCloud)); - }); - - } + entries.add(pair); + JSONArray nodeCandidates = nodeCandidatesCache.get(Quartet.with(paCloud, region, imageReq, "")); + nodeCandidates.forEach(nc -> { + JSONObject nodeCandidate = (JSONObject) nc; + EntityManagerHelper.persist(createLocation(nodeCandidate, paCloud)); + EntityManagerHelper.persist(createNodeCandidate(nodeCandidate, image, paCloud)); + }); } else { JSONArray nodeCandidates = nodeCandidatesCache.get(Quartet.with(paCloud, region, imageReq, ""));