mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	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:
		@@ -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];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user