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
This commit is contained in:
parent
831a5b6ace
commit
84baedcc78
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user