fix for the issue xcatd restart failed on SN if there is IPv6 network entry in xcat networks table.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing
2012-03-21 02:54:55 +00:00
parent c9a613b258
commit ea2730d251
+5 -2
View File
@@ -952,9 +952,12 @@ sub handle_response {
# Handle {node} structure
my $errflg=0;
if (scalar @{$rsp->{node}}) {
#print "printing node\n";
my $nodes=($rsp->{node});
unless (ref $nodes eq 'ARRAY') {
$nodes = [$nodes];
}
if (scalar @{$nodes}) {
#print "printing node\n";
my $node;
foreach $node (@$nodes) {
my $desc=$node->{name}->[0];