File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
server/src/main/java/org/apache/cloudstack/vm Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1466,8 +1466,9 @@ protected void checkExtraParamsAllowed(String extraParams) {
14661466 throw new ServerApiException (ApiErrorCode .PARAM_ERROR ,
14671467 "Extra parameters for Vmware to KVM conversion are enabled but the allowed list of parameters is empty" );
14681468 }
1469- List <String > allowedParams = Arrays .stream (allowedParamsStr .split ("," )).toList ();
1470- List <String > sanitizedParams = Arrays .stream (extraParams .split (" " ))
1469+ List <String > allowedParams = Arrays .asList (allowedParamsStr .split ("," ));
1470+ List <String > sanitizedParams = Arrays .asList (extraParams .split (" " ))
1471+ .stream ()
14711472 .filter (x -> x .startsWith ("-" ))
14721473 .map (s -> s .replaceFirst ("^-+" , "" ).trim ()) //Remove the starting hyphens as in --X or -x
14731474 .toList ();
You can’t perform that action at this time.
0 commit comments