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:
zhanx 2009-04-07 10:03:58 +00:00
parent ffa565aed2
commit dfe3656113

View File

@ -2772,6 +2772,7 @@ sub toIP
{
return ([0, $_[0]]);
}
$!=undef;
my $packed_ip = gethostbyname($_[0]);
if (!$packed_ip or $!)
{