diff --git a/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/PAGateway.java b/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/PAGateway.java index bf5c3d9233f17014f278de6ab3c6b0d361b006c5..52fbc52d178de4ec185af3a413fcf9fbcc0bbc1e 100644 --- a/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/PAGateway.java +++ b/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/PAGateway.java @@ -368,7 +368,8 @@ public class PAGateway { JSONArray imagesArray = connectorIaasGateway.getImages(paCloud.getDummyInfrastructureName()); List imagesIDs = IntStream.range(0, imagesArray.length()) .mapToObj(imagesArray::get) - .map(blaBla -> ((JSONObject)blaBla).optString("id")).collect(Collectors.toList()); + .map(blaBla -> cloudID + "/" + ((JSONObject)blaBla).optString("id")) + .collect(Collectors.toList()); LOGGER.debug("Filtering images related to cloud ID \'" + cloudID + "\'."); allImages.stream().filter(blaTest -> imagesIDs.contains(blaTest.getId())).forEach(filteredImages::add); return filteredImages;