From 65b159d1579127f50766011ec4d95e7abb08bcd8 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 3 Nov 2011 14:54:59 +0000 Subject: [PATCH] Correct erroneous output on nodeset when using xnba.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xnba.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/xnba.pm b/xCAT-server/lib/xcat/plugins/xnba.pm index 9bf05cbe7..49f683c2f 100644 --- a/xCAT-server/lib/xcat/plugins/xnba.pm +++ b/xCAT-server/lib/xcat/plugins/xnba.pm @@ -495,11 +495,12 @@ sub process_request { $callback->(\%response); } elsif ($args[0]) { #If anything else, send it on to the destiny plugin, then setstate ($rc,$errstr) = setstate($_,\%bphash,\%chainhash,\%machash,\%iscsihash); - if ($rc) { - $response{node}->[0]->{errorcode}->[0]= $rc; - $response{node}->[0]->{errorc}->[0]= $errstr; - $callback->(\%response); - } + #currently, it seems setstate doesn't return error codes... + #if ($rc) { + # $response{node}->[0]->{errorcode}->[0]= $rc; + # $response{node}->[0]->{errorc}->[0]= $errstr; + # $callback->(\%response); + #} if($args[0] eq 'offline') { unlink($tftpdir."/xcat/xnba/nodes/".$_); unlink($tftpdir."/xcat/xnba/nodes/".$_.".pxelinux");