mirror of https://github.com/apache/cloudstack.git
Change KVM's delimiter from "," to "%"
In order not to confuse with commandline parameters
This commit is contained in:
parent
1c4f580a85
commit
edcf95a6f0
|
|
@ -801,7 +801,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements
|
|||
command.add("-l", vmName);
|
||||
command.add("-t", "all");
|
||||
command.add("-d", dataDiskPath);
|
||||
command.add("-p", cmdLine.replaceAll(" ", ","));
|
||||
command.add("-p", cmdLine.replaceAll(" ", "%"));
|
||||
result = command.execute();
|
||||
if (result != null) {
|
||||
throw new InternalErrorException(result);
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ patch_all() {
|
|||
cp $pubKey $path/authorized_keys
|
||||
fi
|
||||
echo $cmdline > $path/cmdline
|
||||
sed -i "s/,/\ /g" $path/cmdline
|
||||
sed -i "s/%/\ /g" $path/cmdline
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue