Fix a problem in sub toIP, which can cause xcat commands report 'Cannot resolve <node>' occasionally
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3110 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ffa565aed2
commit
dfe3656113
@ -2772,6 +2772,7 @@ sub toIP
|
||||
{
|
||||
return ([0, $_[0]]);
|
||||
}
|
||||
$!=undef;
|
||||
my $packed_ip = gethostbyname($_[0]);
|
||||
if (!$packed_ip or $!)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user