Have Client.pm tolerate callers that neglect to 'array-ify' rsp->node

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11710 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-02-29 12:57:59 +00:00
parent 9836ad8528
commit 3e76b2102e

View File

@ -955,6 +955,9 @@ sub handle_response {
if (scalar @{$rsp->{node}}) {
#print "printing node\n";
my $nodes=($rsp->{node});
unless (ref $nodes eq 'ARRAY') {
$nodes = [$nodes];
}
my $node;
foreach $node (@$nodes) {
my $desc=$node->{name}->[0];