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

Facter 4 outputs some uptime facts differently on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 4.1.0
    • Component/s: None
    • Labels:
    • Template:
    • Acceptance Criteria:
      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.
    • Team:
      Night's Watch
    • Story Points:
      1
    • Sprint:
      NW - 2021-03-31
    • Method Found:
      Manual Test
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix padding in uptime fact on Windows
    • QA Risk Assessment:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support