fix bug when result of xdsh have a long hostname
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3698 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8658007548
commit
0b09eac455
@ -1480,7 +1480,7 @@ sub showmetrix($rrddir, $attrs, $start_time, $end_time)
|
||||
if($::RUNCMD_RC != 0){
|
||||
return $result;
|
||||
}
|
||||
$output =~ s/$remote: \/var\/rrd\//''/;
|
||||
$output =~ s/(\S+): \/var\/rrd\//''/;
|
||||
} else {
|
||||
$output = xCAT::Utils->runcmd("ls -A $rrddir/$attr*", 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user