File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
server/src/main/java/org/apache/cloudstack/vm Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2446,11 +2446,7 @@ public ListResponse<UnmanagedInstanceResponse> listVmsForImport(ListVmsForImport
2446
2446
throw new InvalidParameterValueException ("Please specify a valid zone." );
2447
2447
}
2448
2448
final String hypervisorType = cmd .getHypervisor ();
2449
- if (Hypervisor .HypervisorType .KVM .toString ().equalsIgnoreCase (hypervisorType )) {
2450
- if (StringUtils .isBlank (cmd .getUsername ())) {
2451
- throw new InvalidParameterValueException ("Username need to be provided." );
2452
- }
2453
- } else {
2449
+ if (!Hypervisor .HypervisorType .KVM .toString ().equalsIgnoreCase (hypervisorType )) {
2454
2450
throw new InvalidParameterValueException (String .format ("VM Import is currently not supported for hypervisor: %s" , hypervisorType ));
2455
2451
}
2456
2452
You can’t perform that action at this time.
0 commit comments