only audit log if on the MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5432 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
7386d13714
commit
1ea195ee01
@ -468,9 +468,10 @@ sub message
|
||||
}
|
||||
}
|
||||
|
||||
# if write to auditlog table requested
|
||||
if ($sev eq 'SA')
|
||||
{
|
||||
# if write to auditlog table requested, if not on service node
|
||||
if (xCAT::Utils->isMN()){
|
||||
if ($sev eq 'SA')
|
||||
{
|
||||
my $auditlogentry;
|
||||
my $tab = xCAT::Table->new("auditlog", -create => 1, -autocommit => 0);
|
||||
if ($tab)
|
||||
@ -517,6 +518,7 @@ sub message
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user