fixed one issue on AIX that didn't handle the output well from ASMI

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5625 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2010-03-31 10:48:58 +00:00
parent 170c215815
commit 7d2c904eb8

View File

@ -1815,13 +1815,14 @@ sub set_netcfg
#last HTML::Form. So let's take a guess of the type value
#Not sure if it can work for all AIX version
{
my @types = $interfaces->{ $real_inc_name}->{'type'}->possible_values();
if ( $inc_type eq 'Dynamic')
{
$interfaces->{ $real_inc_name}->{'type'}->value(1);
$interfaces->{ $real_inc_name}->{'type'}->value(@types[0]);
}
else
{
$interfaces->{ $real_inc_name}->{'type'}->value(0);
$interfaces->{ $real_inc_name}->{'type'}->value(@types[1]);
}
}
#not work on AIX