| {
private Class> preferredIpVersion = Inet4Address.class;
@@ -113,7 +111,7 @@ public class VmMgmt extends FreeMarkerConlet {
*
* @param event the event
*/
- @SuppressWarnings({ "unchecked", "PMD.AvoidDuplicateLiterals" })
+ @SuppressWarnings({ "unchecked" })
@Handler
public void onConfigurationUpdate(ConfigurationUpdate event) {
event.structured("/Manager/GuiHttpServer"
@@ -178,7 +176,6 @@ public class VmMgmt extends FreeMarkerConlet {
}
@Override
- @SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
protected Set doRenderConlet(RenderConletRequestBase> event,
ConsoleConnection channel, String conletId, VmsModel conletState)
throws Exception {
@@ -231,12 +228,14 @@ public class VmMgmt extends FreeMarkerConlet {
simplifiedVmDefinition(vmDef, user, roles)));
}
- @SuppressWarnings("PMD.AvoidDuplicateLiterals")
private Map simplifiedVmDefinition(VmDefinition vmDef,
String user, List roles) {
// Convert RAM sizes to unitless numbers
var spec = DataPath.deepCopy(vmDef.spec());
+ spec.remove("cloudInit");
var vmSpec = DataPath. |