From 6533cc809bd15c7021f083d5e140f666e82be96d Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 23 Sep 2009 07:40:24 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/DBobjUtils.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perl-xCAT/xCAT/DBobjUtils.pm b/perl-xCAT/xCAT/DBobjUtils.pm index 7895ac106..8400fbc85 100644 --- a/perl-xCAT/xCAT/DBobjUtils.pm +++ b/perl-xCAT/xCAT/DBobjUtils.pm @@ -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; }