Skip to content

Commit

Permalink
Fix flavor management
Browse files Browse the repository at this point in the history
  • Loading branch information
maricaantonacci committed Apr 3, 2023
1 parent 45cfb71 commit 4b681e3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,11 @@ private void replaceFlavor(Map<NodeTemplate, Flavor> contextualizedFlavors,
return capability;
});
String flavorName = flavor.getFlavorName();
osCapability.getProperties().put("instance_type", new ScalarPropertyValue(flavorName));
Map<String, AbstractPropertyValue> properties = osCapability.getProperties();
properties.put("instance_type", new ScalarPropertyValue(flavorName));
if (properties.get("disk_size") != null) {
properties.remove("disk_size");
}
});
}

Expand Down

0 comments on commit 4b681e3

Please sign in to comment.