Lines 1-23
Link Here
|
1 |
--- ./lib/facter/util/ip.rb.orig 2014-06-08 11:06:52.000000000 -0500 |
|
|
2 |
+++ ./lib/facter/util/ip.rb 2014-06-08 11:08:34.000000000 -0500 |
3 |
@@ -210,7 +210,7 @@ |
4 |
# |
5 |
# @return [String] representing the requested value. An empty array is |
6 |
# returned if the kernel is not supported by the REGEX_MAP constant. |
7 |
- def self.get_interface_value(interface, label) |
8 |
+ def self.get_interface_value(interface, label, intalias = -1) |
9 |
if Facter.value(:kernel) == 'windows' |
10 |
require 'facter/util/ip/windows' |
11 |
return Facter::Util::IP::Windows.value_for_interface_and_label(interface, label) |
12 |
@@ -252,7 +252,10 @@ |
13 |
end |
14 |
|
15 |
if tmp1 |
16 |
- value = tmp1.shift |
17 |
+ (-1..intalias).each do |i| |
18 |
+ value = tmp1.shift |
19 |
+ end |
20 |
+ value |
21 |
end |
22 |
end |
23 |
end |