From 3d008a7b33ef3c2db83778f660d3c07755234d5f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 9 May 2012 14:12:20 +0000 Subject: [PATCH] Have xnba.pm more gracefully recover from error conditions git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12580 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xnba.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/xnba.pm b/xCAT-server/lib/xcat/plugins/xnba.pm index 0339ab90f..7e01254a6 100644 --- a/xCAT-server/lib/xcat/plugins/xnba.pm +++ b/xCAT-server/lib/xcat/plugins/xnba.pm @@ -263,6 +263,9 @@ sub setstate { my $errored = 0; sub pass_along { my $resp = shift; + if ($resp->{error} and not ref $resp->{error}) { + $resp->{error} = [ $resp->{error} ]; + } if ($resp and ($resp->{errorcode} and $resp->{errorcode}->[0]) or ($resp->{error} and $resp->{error}->[0])) { $errored=1; }