From 1ea195ee01d2063911340d5d7e2a328ba286dde6 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 10 Mar 2010 18:57:42 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/MsgUtils.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/MsgUtils.pm b/perl-xCAT/xCAT/MsgUtils.pm index 1dbf80660..1aa8c63c5 100644 --- a/perl-xCAT/xCAT/MsgUtils.pm +++ b/perl-xCAT/xCAT/MsgUtils.pm @@ -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; }