diff options
| author | James Turnbull <james@lovedthanlost.net> | 2007-11-05 20:40:31 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2007-11-05 20:40:31 +1100 |
| commit | be7c30b60414144d4238263fed5586283b30ebea (patch) | |
| tree | 99322767973826a729b390a521af2eda5dfe38ff /lib | |
| parent | 74621b50655db2e91a850946150557e3cda411cc (diff) | |
| download | facter-be7c30b60414144d4238263fed5586283b30ebea.tar.gz facter-be7c30b60414144d4238263fed5586283b30ebea.tar.xz facter-be7c30b60414144d4238263fed5586283b30ebea.zip | |
Fixed ticket #44
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/facter/ipmess.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facter/ipmess.rb b/lib/facter/ipmess.rb index abee8a2..349d523 100644 --- a/lib/facter/ipmess.rb +++ b/lib/facter/ipmess.rb @@ -21,7 +21,7 @@ if Facter.kernel == "Linux" output = %x{/sbin/ifconfig -a} int = nil - output.scan(/^(\w+)(\d+)/) { |str| + output.scan(/^(\w+)(\.|:?)(\d+)/) { |str| output_int = %x{/sbin/ifconfig #{str}} int = "#{str}" tmp1 = nil @@ -54,7 +54,7 @@ if Facter.kernel == "FreeBSD" || Facter.kernel == "OpenBSD" || Facter.kernel == output = %x{/sbin/ifconfig -a} int = nil - output.scan(/^(\w+)(\d+):/) { |str| + output.scan(/^(\w+)(\.|:?)(\d+):/) { |str| output_int = %x{/sbin/ifconfig #{str}} int = "#{str}" tmp1 = nil |
