mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-13 01:40:26 +00:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user