Skip to content

Commit fce33e4

Browse files
author
Dimitri DELABROYE
committed
[generators/wiki] complementary commit to PR #78
1 parent 8de2ba5 commit fce33e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

generators/wiki/lib/generators/hardware.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def generate_totals
7171
interfaces = node_hash['network_adapters'].select{ |k, v|
7272
v['enabled'] and
7373
(v['mounted'] or v['mountable']) and
74-
not v['management']
74+
not v['management'] and
75+
(k =~ /\./).nil? # exclude PKEY / VLAN interfaces see #9417
7576
}.map{ |k, v|
7677
[
7778
{
@@ -91,7 +92,8 @@ def generate_totals
9192
interfaces = node_hash['network_adapters'].select{ |k, v|
9293
v['enabled'] and
9394
(v['mounted'] or v['mountable']) and
94-
not v['management']
95+
not v['management'] and
96+
(k =~ /\./).nil? # exclude PKEY / VLAN interfaces see #9417
9597
}.map{ |k, v|
9698
t = (v['vendor'] || 'N/A') + ' ' + (v['model'] || 'N/A');
9799
[

0 commit comments

Comments
 (0)