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.