2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 01:26:38 +00:00

Merge pull request #1345 from gurevichmark/rmdef_count

Correct the count of removed objects
This commit is contained in:
Victor Hu 2016-06-22 16:57:23 -04:00 committed by GitHub
commit 4750bd7e15

View File

@ -4036,6 +4036,9 @@ sub defrm
my $rsp;
$rsp->{data}->[0] = "Could not find an object named \'$obj\' of type \'$objtype\'.";
xCAT::MsgUtils->message("E", $rsp, $::callback);
# Remove the object we could not find from the hash, this way the count of the objects
# and the content of the hash (for the verbose option), can be used for printing results at the end
delete($objhash{$obj});
next;
}
$numobjects++;