From 9c556ff8adcc2e3a150dcb4500ba21ee4a4268df Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 23 Sep 2009 07:42:58 +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@4205 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/DBobjUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/DBobjUtils.pm b/perl-xCAT/xCAT/DBobjUtils.pm index 8400fbc85..6b594ce33 100644 --- a/perl-xCAT/xCAT/DBobjUtils.pm +++ b/perl-xCAT/xCAT/DBobjUtils.pm @@ -1046,7 +1046,7 @@ 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"; + push @{$rsp->{data}}, "Cannot set the \'$attr_name\' attribute unless \'$check_attr=$check_value\'.\n"; xCAT::MsgUtils->message("E", $rsp, $::callback) next;