Fix bug in esx.pm where spurious data could find its way into the nicmodel

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16672 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-06-18 19:34:54 +00:00
parent 4e16d8fb9f
commit 3e86b5f20c

View File

@ -3079,9 +3079,13 @@ sub create_nic_devs {
$pgname = $hyphash{$hyp}->{pgnames}->{$_};
}
s/.*://;
s/=(.*)$//;
my $hadspecmodel=0;
if (m/=/) {
$hadspecmodel=1;
s/=(.*)$//;
}
my $tmpmodel=$model;
if ($1) { $tmpmodel=$1; }
if ($hadspecmodel) { $tmpmodel=$1; }
my $netname = $_;
my $backing = VirtualEthernetCardNetworkBackingInfo->new(
network => $netmap->{$pgname},