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

windows and cisco facter $::osfamily, os.name, and $::kernel output inconsistent vs other platforms

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: FACT 1.7.5
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      windows

    • Template:
    • Team:
      Platform OS
    • Story Points:
      3

      Description

      Output from facter for $::osfamily, os.name, and $::kernel is inconsistent vs output on other platforms.

      I get 'windows' instead of 'Windows' as the output.

      os.family : "cisco-wrlinux"
      os.family : "windows"

      os.name : "ios_xr"
      os.name : "nexus"
      os.name : "windows"

      kernel : "windows"

      Other platforms give outputs such as 'Solaris' or 'RedHat' because programmers and customers picking up this fact will naturally expect its output to be consistent with other platforms.

      Today this has led to bug MODULES-1203 (PR merged) which broke the concat module for our windows users - I'm concerned that we will see this problem come up time after time and also that it will impact our customers - eg if they use regexps. Would be great if this could be addressed to improve consistency

      Cheers,

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              geoff.williams Geoff Williams
              Votes:
              2 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support