mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Merge pull request #1668 from xuweibj/snoutput
modify summary output of xcatmn
This commit is contained in:
commit
8d46304373
@ -668,9 +668,10 @@ sub do_main_job {
|
||||
#-------------------------------------
|
||||
# When this command return from all SNs and MN, you need to generate a summary
|
||||
# All history outpout from SNs and MN are saved in globle hash %summaryoutput.
|
||||
# $ummaryoutput{mn} = @mnhistory
|
||||
# $ummaryoutput{snname1} = @snname1history;
|
||||
# $summaryoutput{mn} = @mnhistory
|
||||
# $summaryoutput{snname1} = @snname1history;
|
||||
# The entry in each histroy array isn't categorized, the message coming early is arranged before the one coming later.
|
||||
# A simple example of how to dump %summaryoutput has been written in function
|
||||
#-------------------------------------
|
||||
sub summary_all_jobs_output {
|
||||
|
||||
@ -775,8 +776,7 @@ sub send_sn_msg {
|
||||
next if ($node eq "mn");
|
||||
foreach my $line (@{ $summaryoutput{$node} }) {
|
||||
if ($line =~ /^(\[\w+\]\s*):\s*(.*)/) {
|
||||
$line = "$1:$node: $2";
|
||||
print "$line\n";
|
||||
print "$1:$node: $2\n";
|
||||
} else {
|
||||
print "[failed] :$node: $line\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user