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:
parent
9bdc0c3bd3
commit
6533cc809b
@ -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;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user