mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-05 17:58:14 +00:00
Actually change confluent detection in replaycons
This commit is contained in:
@@ -72,15 +72,13 @@ if ($hmtab) {
|
||||
my $file = "/var/log/consoles/$node";
|
||||
|
||||
#use confluent if it is there
|
||||
USE_CONFLUENT=0
|
||||
CONSOLE_SERVICE_KEYWORD=`tabdump site | grep consoleservice | cut -d, -f1 | tr -d '"'`
|
||||
CONSOLE_SERVICE_VALUE=`tabdump site | grep consoleservice | cut -d, -f2 | tr -d '"'`
|
||||
|
||||
if [ "$CONSOLE_SERVICE_KEYWORD" == "consoleservice" ]; then
|
||||
if [ "$CONSOLE_SERVICE_VALUE" == "confluent" ]; then
|
||||
my $stab = xCAT::Table->new('site');
|
||||
if ($stab) {
|
||||
(my $ref) = $stab->getAttribs({key => 'consoleservice'}, 'value');
|
||||
if ($ref->{value} && $ref->{value} eq 'confluent') {
|
||||
$file = "/var/log/confluent/consoles/$node";
|
||||
fi
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
#print "file=$file\n";
|
||||
|
||||
|
Reference in New Issue
Block a user