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

Facter 4 outputs some uptime facts differently on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • FACT 4.1.0
    • None
    • Hide

      Minutes should always be two digits. Would be best to check minutes padding for other time based facts too.

      Show
      Minutes should always be two digits. Would be best to check minutes padding for other time based facts too.
    • Night's Watch
    • 1
    • NW - 2021-03-31
    • Manual Test
    • Bug Fix
    • Fix padding in uptime fact on Windows
    • Needs Assessment

    Description

      While running puppet facts diff on Windows 10 Enterprise 32bit, Windows 2019 64 bit in Japanese and Windows 2012r2 FIPS 64 bit, I got the following output:

      {
        "system_uptime.uptime": {
          "new_value": "1:3 hours",
          "old_value": "1:02 hours"
        },
        "uptime": {
          "new_value": "1:3 hours",
          "old_value": "1:02 hours"
        }
      }
      

      Note: EXCLUDE_LIST from https://github.com/puppetlabs/puppet/blob/6.x/lib/puppet/face/facts.rb#L5 needs to be manually emptied to see above results.
      More info: https://docs.google.com/document/d/1QlX_mv17fZ4eVZa9zHxvTRVJ5sq88aj3GjUC6lVFiz0/edit#heading=h.gnnvlmulav1v

      Attachments

        Activity

          People

            gabriel.nagy Gabriel Nagy
            luchian.nemes Luchian Nemes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support