fix naming issue

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2026-03-18 18:50:29 +05:30
parent 90d87d0e92
commit 1e9a116bcb
1 changed files with 1 additions and 3 deletions

View File

@ -575,9 +575,7 @@ public class ServerAdapter extends ManagerBase {
throw new InvalidParameterValueException("Invalid name specified for the VM");
}
String displayName = name;
if (name.endsWith("_restored")) {
name = name.replace("_restored", "-restored");
}
name = name.replaceAll("_", "-");
Long zoneId = null;
Long clusterId = null;
if (request.getCluster() != null && StringUtils.isNotEmpty(request.getCluster().getId())) {