From 2c3c0ebe192bfc8dd5d8fd5ec44b2db8bb08c240 Mon Sep 17 00:00:00 2001 From: linggao Date: Tue, 4 Jan 2011 16:54:23 +0000 Subject: [PATCH] removed the checking in monadd command so that the settings can be modified by this command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8545 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/monctrlcmds.pm | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/monctrlcmds.pm b/xCAT-server/lib/xcat/plugins/monctrlcmds.pm index ad169ea28..49b90df50 100644 --- a/xCAT-server/lib/xcat/plugins/monctrlcmds.pm +++ b/xCAT-server/lib/xcat/plugins/monctrlcmds.pm @@ -918,19 +918,19 @@ sub monadd { } my $table=xCAT::Table->new("monitoring", -create =>1); if ($table) { - my $tmp1=$table->getAllEntries("all"); - if (defined($tmp1) && (@$tmp1 > 0)) { - foreach(@$tmp1) { - my $name=$_->{name}; - if ($name eq $pname) { - my $rsp={}; - $rsp->{data}->[0]="$pname has already been added in the monitoring table."; - $callback->($rsp); - $table->close(); - return 1; - } - } - } + #my $tmp1=$table->getAllEntries("all"); + #if (defined($tmp1) && (@$tmp1 > 0)) { + # foreach(@$tmp1) { + # my $name=$_->{name}; + # if ($name eq $pname) { + # my $rsp={}; + # $rsp->{data}->[0]="$pname has already been added in the monitoring table."; + # $callback->($rsp); + # $table->close(); + # return 1; + # } + # } + #} my $module_name="xCAT_monitoring::$pname";