mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-26 08:55:24 +00:00 
			
		
		
		
	fix defect 3734 makehosts throw exceptions when node ip is not illegal
This commit is contained in:
		| @@ -252,6 +252,13 @@ sub add_hosts_content { | ||||
|                     { | ||||
|                         addnode $callback, $nodename, $ip, $ref->{hostnames}, $domain; | ||||
|                     } | ||||
| 		    else | ||||
| 		    { | ||||
| 			my $rsp; | ||||
| 			push @{$rsp->{data}}, "Invalid IP Addr \'$ref->{ip}\' for node \'$ref->{node}\'."; | ||||
| 			xCAT::MsgUtils->message("E", $rsp, $callback); | ||||
| 		    } | ||||
|  | ||||
|                     if (defined($ref->{otherinterfaces})) | ||||
|                     { | ||||
|                         addotherinterfaces $callback, $nodename, $ref->{otherinterfaces}, $domain; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user