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
This commit is contained in:
parent
39be28ac69
commit
2c3c0ebe19
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user