add node number information for mkdef,chdef,rmdef output message

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@10718 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc
2011-10-09 01:39:20 +00:00
parent 2dafc29fa5
commit d828446fd0
+6 -3
View File
@@ -1472,8 +1472,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;
@@ -2260,8 +2261,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)
{
@@ -3448,7 +3450,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.