2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-24 05:11:12 +00:00

fix execute xcattest related command there are error message

This commit is contained in:
penguhyang
2016-10-25 21:36:05 -04:00
parent ab7e94bf6f
commit b2132fd4db

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