diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 3dc588452..447114cde 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -588,34 +588,6 @@ sub preprocess_updatenode foreach my $snkey (keys %$sn) { - my @tmp_a = split(',', $snkey); - foreach my $s1 (@tmp_a) - { - - # TODO fix the error handling, right now cause inf loop - # should use the new --nodestatus capability - # when getdata and updatenode_cb are registered LKV - # if ( $::SECURITY - # && !(grep /^$s1$/, @::good_sns) # is it good - # && !(grep /^$s1$/, @MNip)) # is the MN - # { - # my $rsp; - # push @{$rsp->{data}}, - # "The security update for service node $snkey encountered error, update security for following nodes will be skipped: @{$sn->{$snkey}}"; - # xCAT::MsgUtils->message("E", $rsp, $callback); - # next; - # } - - # remove the service node which have been handled before - #if ($::SECURITY && (grep /^$s1$/, @MNip)) - #{ - # delete @{$sn->{$snkey}}[@sns]; - # if (scalar(@{$sn->{$snkey}}) == 0) - # { - # next; - # } - #} - } # build request