• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

puppetlabs / facter / 4391
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: 3.12.x
DEFAULT BRANCH: master
Ran 25 Jul 2018 05:52PM UTC
Jobs 1
Files 377
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4391

push

travis-ci

smcclellan
(FACT-1475) Clear out bogus IPV4 data for IPV6 query

On some platforms, in particular CentOS 5 and 6, facter erroneously
outputs ipv4 values for ipv6 facts when ipv6 is disabled. Specifically,
it outputs an ipv4 address for the ip6 fact. The reason it does this is
because the command `ip -6 route show` returns ipv4 data. Facter uses
this command to figure out the primary network interface and to also
provide at least the network interface's ip address when getifaddr does
not return any bindings for it. Facter fills in the ip6 fact when ipv6
is disabled for exactly this reason -- getifaddr does not return any
ipv6 bindings, but `ip -6 route show` outputs a bogus ipv4 address that
gets filled in instead.

This commit detects when the ip command outputs ipv4 information for an
ipv6 query, correctly erasing all currently collected ipv6 route data when
this occurs.

9793 of 11189 relevant lines covered (87.52%)

93.53 hits per line

Jobs
ID Job ID Ran Files Coverage
6 4391.6 (TRAVIS_TARGET=DEBUG) 25 Jul 2018 05:52PM UTC 0
87.52
Travis Job 4391.6
Source Files on build 4391
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4391
  • fed0e275 on github
  • Prev Build on 3.11.x (#4390)
  • Next Build on 3.11.x (#4407)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc