Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1739

ipaddress6 returns ipv4 address

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: FACT 3.8.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      A host with ipv6 disabled:

      $ ip addr show eth0
      2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
          link/ether 52:54:00:48:4e:21 brd ff:ff:ff:ff:ff:ff
          inet 192.168.1.101/24 brd 192.168.1.255 scope global eth0
             valid_lft forever preferred_lft forever
      

      returns:

       facter -p --show-legacy | grep ipaddress; facter facterversion
      ipaddress => 192.168.1.101
      ipaddress6 => 192.168.1.101
      ipaddress6_eth0 => 192.168.1.101
      ipaddress_eth0 => 192.168.1.101
      ipaddress_lo => 127.0.0.1
      3.8.0
      

      This should be empty as it was in 2.4.6 and could actually be seen as severe, as it returns wrong facts.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                duritong Peter Meier
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support