mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	Total failure to reach a management module is now reported correctly instead of segfaulting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1126,7 +1126,13 @@ sub dompa { | ||||
|                     Timeout=>1300000, #Beacon, for one, takes a bit over a second to return | ||||
|                     PrivPass => $mpahash->{$mpa}->{password}); | ||||
|   if ($session->{ErrorStr}) { return 1,$session->{ErrorStr}; } | ||||
|   unless ($session) { | ||||
|   unless ($session and keys %$session) { | ||||
|      my %err=(node=>[]); | ||||
|      foreach (keys %{$mpahash{$mpa}->{nodes}}) { | ||||
|         push (@{$err{node}},{name=>[$_],error=>["Cannot communicate with $mpa"],errorcode=>[1]}); | ||||
|      } | ||||
|      print $out freeze([\%err]); | ||||
|      print $out "\nENDOFFREEZE6sK4ci\n"; | ||||
|      return 1,"General error establishing SNMP communication"; | ||||
|   } | ||||
|   my $tmp = $session->get([$mmprimoid.".1"]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user