From b069511056b7ea6b5114764eb29dfe6e551442ba Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 29 Jan 2008 13:13:01 +0000 Subject: [PATCH] Remove bogus message when running mkdef. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@342 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/xCAT/DBobjUtils.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/perl-xCAT-2.0/xCAT/DBobjUtils.pm b/perl-xCAT-2.0/xCAT/DBobjUtils.pm index 9d8e0ff2c..e18f3c391 100644 --- a/perl-xCAT-2.0/xCAT/DBobjUtils.pm +++ b/perl-xCAT-2.0/xCAT/DBobjUtils.pm @@ -294,6 +294,7 @@ sub getobjdefs if (ref($ent) and defined $ent->{$tabattr}) { $objhash{$objname}{$attr} = $ent->{$tabattr}; + } $thistable->commit; @@ -647,7 +648,7 @@ sub setobjdefs # need to check the attrs we are setting for the object # as well as the attrs for this object that may be - # already set in DB + # already set in DB if ( (!grep(/$check_value/, $objhash{$objname}{$check_attr})) && ( @@ -656,11 +657,6 @@ sub setobjdefs ) ) { - my %rsp; - $rsp->{data}->[0] = - "Could not set \'$attr_name\' for \'$objname\'."; - xCAT::MsgUtils->message("I", $rsp, $::callback); - $ret = 1; next; }