2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

modify depending on comments

This commit is contained in:
hu-weihua 2016-08-17 05:26:24 -04:00
parent 6a19760719
commit fe7475b4d0

View File

@ -108,15 +108,17 @@ sub do_main_job {
# A simple example of how to dump %summaryoutput has been written in function
#-------------------------------------
sub summary_all_jobs_output {
my $rst = 0;
#DO SUMMARY DEPENDING ON YOUR SUB_COMMAND NEED
print "\n======================do summary=====================\n";
probe_utils->send_msg("$output", "d", "======================do summary=====================");
foreach my $sn (keys %summaryoutput) {
print "[$sn]\n";
probe_utils->send_msg("$output", "d", "[$sn]");
foreach my $log (@{ $summaryoutput{$sn} }) {
print "\t$log\n";
probe_utils->send_msg("$output", "d", "$log");
}
}
return $rst;
}
#-------------------------------------