From dfe5a2783e3a5a8872cab528b2ec2cb69351d50c Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 16 Nov 2012 13:07:17 +0000 Subject: [PATCH] add comments git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 0e8ea61be..951cc9a05 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -1502,16 +1502,18 @@ sub updatenodesyncfiles return; } #------------------------------------------------------------------------------- - =head3 buildnodestatus - Takes the output of the updatenode run - and builds a global array of good node and one of bad node - output the remaining user info + and builds a global array of successfull nodes and one of failed nodes + and then outputs the remaining user info + If output null , then it just checks that the @::SUCCESSFULLNODES + does not contain @::FAILEDNODES and removes them if it does. Arguments: output,callback - Globals @::GOODNODES, @::BADNODES + Globals @::SUCCESSFULLNODES, @::FAILEDNODES =cut + #----------------------------------------------------------------------------- sub buildnodestatus { @@ -1543,7 +1545,7 @@ sub buildnodestatus $callback->($rsp); } } - #If in failed remove from succeeded and make sure no duplicates + #If a failed node is in the SUCCESSFULLNODES array remove it. my %m=(); my %n=(); @@ -1680,10 +1682,14 @@ sub updatenodesoftware return; } +#------------------------------------------------------------------------------- -# -# Handles the return from running xcatdsklspost -# +=head3 getdata - This is the local callback that handles the response from + the xdsh streaming calls when running postscripts and software + updates + +=cut +#------------------------------------------------------------------------------- sub getdata { no strict;