2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-21 05:25:32 +00:00

Merge pull request #2031 from penguhyang/xcattest_warning

fix execute xcattest related command there are error message
This commit is contained in:
Weihua Hu
2016-10-26 10:03:34 +08:00
committed by GitHub

View File

@ -216,8 +216,7 @@ sub include_file
unless ($file =~ /^\//) {
$file = $idir . "/" . $file;
}
open(INCLUDE, $file) || \
return "#INCLUDEBAD:cannot open $file#";
open(INCLUDE, $file) || return "#INCLUDEBAD:cannot open $file#";
while (<INCLUDE>) {
chomp($_);
s/\s+$//; #remove trailing spaces