mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3383 escaped "'s
This commit is contained in:
parent
ee8facd382
commit
a2a82f517b
|
|
@ -3255,7 +3255,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
private Answer execute(GetHostStatsCommand cmd) {
|
||||
final Script cpuScript = new Script("/bin/bash", s_logger);
|
||||
cpuScript.add("-c");
|
||||
cpuScript.add("idle=$(top -b -n 1| awk -F, '/^[%]*[Cc]pu/{$0=$4; gsub(/[^0-9.,]+/,""); print }'); echo $idle");
|
||||
cpuScript.add("idle=$(top -b -n 1| awk -F, '/^[%]*[Cc]pu/{$0=$4; gsub(/[^0-9.,]+/,\"\"); print }'); echo $idle");
|
||||
|
||||
final OutputInterpreter.OneLineParser parser = new OutputInterpreter.OneLineParser();
|
||||
String result = cpuScript.execute(parser);
|
||||
|
|
|
|||
Loading…
Reference in New Issue