From 84baedcc783f2b379c22d0b44eb3dc614c147373 Mon Sep 17 00:00:00 2001 From: ligc Date: Sun, 9 Oct 2011 01:39:37 +0000 Subject: [PATCH] add node number information for mkdef,chdef,rmdef output message git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10719 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 8d484564f..d6f42857a 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -1473,8 +1473,9 @@ sub defmk else { my $rsp; + my $nodenum = scalar(keys %::FINALATTRS); $rsp->{data}->[0] = - "Object definitions have been created or modified."; + "$nodenum object definitions have been created or modified."; xCAT::MsgUtils->message("I", $rsp, $::callback); } return 0; @@ -2261,8 +2262,9 @@ sub defch else { my $rsp; + my $nodenum = scalar(keys %::FINALATTRS); $rsp->{data}->[0] = - "Object definitions have been created or modified."; + "$nodenum object definitions have been created or modified."; xCAT::MsgUtils->message("I", $rsp, $::callback); if (scalar(keys %newobjects) > 0) { @@ -3449,7 +3451,8 @@ sub defrm else { my $rsp; - $rsp->{data}->[0] = "Object definitions have been removed."; + my $nodenum = scalar(keys %objhash); + $rsp->{data}->[0] = "$nodenum object definitions have been removed."; xCAT::MsgUtils->message("I", $rsp, $::callback); } # Give a warning message to the user to remove the children of the node.