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

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • FACT 1.7.5
    • None
    • None
    • windows

    • Platform OS
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support