mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-01 17:17:36 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user