Give error message if some attributes cannot be set into db with chdef command

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4204 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2009-09-23 07:40:24 +00:00
parent 9bdc0c3bd3
commit 6533cc809b

View File

@ -1046,6 +1046,8 @@ sub setobjdefs
if ( !($objhash{$objname}{$check_attr} =~ /\b$check_value\b/) && !($DBattrvals{$objname}{$check_attr} =~ /\b$check_value\b/) )
{
push @{$rsp->{data}}, "Cannot set the \'$attr_name\' attribute unless \'$check_attr=$check_value\' attribute are set.\n";
xCAT::MsgUtils->message("E", $rsp, $::callback)
next;
}