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

puppetlabs / facter / 4391 / 6
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: 3.12.x
DEFAULT BRANCH: master
Ran 25 Jul 2018 05:52PM UTC
Files 377
Run time 56s
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

25 Jul 2018 05:52PM UTC coverage: 87.523% (-0.07%) from 87.593%
TRAVIS_TARGET=DEBUG

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

Source Files on job 4391.6 (TRAVIS_TARGET=DEBUG)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4306
  • Travis Job 4391.6
  • fed0e275 on github
  • Prev Job for TRAVIS_TARGET=DEBUG on 3.11.x (#4390.6)
  • Next Job for TRAVIS_TARGET=DEBUG on 3.11.x (#4407.6)
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