Jira (FACT-1151) Downcase os* and dmi* facts

0 views
Skip to first unread message

Daniele Sluijters (JIRA)

unread,
Jul 27, 2015, 3:38:04 PM7/27/15
to puppe...@googlegroups.com
Daniele Sluijters created an issue
 
Facter / New Feature FACT-1151
Downcase os* and dmi* facts
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2015/07/27 12:37 PM
Priority: Normal Normal
Reporter: Daniele Sluijters

When running Facter the os* facts look like this:

os => {
  architecture => "amd64",
  distro => {
    codename => "trusty",
    description => "Ubuntu 14.04.2 LTS",
    id => "Ubuntu",
    release => {
      full => "14.04",
      major => "14.04"
    }
  },
  family => "Debian",
  hardware => "x86_64",
  name => "Ubuntu",
  release => {
    full => "14.04",
    major => "14.04"
  },
  selinux => {
    enabled => false
  }
}

This makes for writing annoying code, checking between os['family'] == 'Debian' instead of 'debian' etc.

The dmi facts have the same feature where we got 'Bochs' all over.

I realise that down casing facts by default will break a lot of things for people so this could perhaps be considered for a major release boundary but it would make for less crazy manifests in the end.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.5#64020-sha1:78acd6c)
Atlassian logo

Maggie Dreyer (JIRA)

unread,
May 17, 2017, 1:34:03 PM5/17/17
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Labels: triaged
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:49:15 PM5/18/17
to puppe...@googlegroups.com
Moses Mendoza updated an issue
Change By: Moses Mendoza
Labels: triaged

Claudia Petty (Jira)

unread,
Jun 21, 2023, 8:43:04 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages