mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-29 13:38:12 +00:00
Improve robustness of confluent check
Use the existence of the presumed log as a stronger indication of the use of confluent. Continue to shy away from slowing things down by getting the site table, to avoid the slow check.
This commit is contained in:
@@ -72,7 +72,7 @@ if ($hmtab) {
|
||||
my $file = "/var/log/consoles/$node";
|
||||
|
||||
#use confluent if it is there
|
||||
if ((-x "/opt/confluent/bin/confetty") || (-x "/usr/bin/confetty")) {
|
||||
if (((-x "/opt/confluent/bin/confetty") || (-x "/usr/bin/confetty")) && -f "/var/log/confluent/consoles/$node") {
|
||||
$file = "/var/log/confluent/consoles/$node";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user