2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 01:56:39 +00:00

Merge pull request #5696 from hu-weihua/probe5488

Enhance osdeploy for issue 5488
This commit is contained in:
xuweibj 2018-10-12 14:20:53 +08:00 committed by GitHub
commit f09c27dd08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,10 +126,15 @@ sub obtain_log_file_list {
my $self = shift;
my %candidate_log;
my @loglist = ("/var/log/messages",
"/var/log/xcat/cluster.log",
"/var/log/xcat/computes.log",
"/var/log/syslog");
my @candidate_log_set;
push @candidate_log_set, "/var/log/messages" if (-e "/var/log/messages");
push @candidate_log_set, "/var/log/xcat/cluster.log" if (-e "/var/log/xcat/cluster.log");
push @candidate_log_set, "/var/log/xcat/computes.log" if (-e "/var/log/xcat/computes.log");
foreach my $log (@loglist){
push @candidate_log_set, $log if (-e "$log");
}
my $filename;
foreach my $log (@candidate_log_set) {