Bug #2420

Inventory doesn't support Scientific Linux - Os Name = Red Hat

Added by Nicolas Charles over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:02/01/2014
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:inventory
Target version:2.3.6
For junior contributor:No

Description

The inventory, without lsb_release installed, doesn't report proper os name

$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Scientific
Description: Scientific Linux release 6.4 (Carbon)
Release: 6.4
Codename: Carbon

Inventory with redhat-lsb-core package installed:
<OPERATINGSYSTEM>
<FULL_NAME>Scientific Linux release 6.4 (Carbon)</FULL_NAME>
<KERNEL_NAME>linux</KERNEL_NAME>
<KERNEL_VERSION>2.6.32-042stab076.8</KERNEL_VERSION>
<NAME>Scientific</NAME>
<VERSION>6.4</VERSION>
</OPERATINGSYSTEM>

Inventory without:
<OPERATINGSYSTEM>
<FULL_NAME>Scientific Linux release 6.4 (Carbon)</FULL_NAME>
<KERNEL_NAME>linux</KERNEL_NAME>
<KERNEL_VERSION>2.6.32-358.6.2.el6.x86_64</KERNEL_VERSION>
<NAME>RedHat</NAME>
<VERSION>6.4</VERSION>
</OPERATINGSYSTEM>

With the enclosed patch, it corrects the NAME returned by inventory

Thank you !

Correct_detection_of_RedHat.patch Magnifier (1.12 KB) Nicolas Charles, 02/01/2014 11:21 PM

History

#1 Updated by Nicolas Charles over 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:399e1b95c6ee9ededa4063717317b39f54e27501.

#2 Updated by Gonéri Le Bouder over 3 years ago

  • Status changed from Resolved to New
  • % Done changed from 100 to 0

Thank Nicolas for the patch.

#3 Updated by Nicolas Charles over 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:6e6bad326e00303718dcaa76f6bca5658a1ae372.

#4 Updated by Guillaume Rousse over 3 years ago

  • Target version set to 2.3.6

#5 Updated by Guillaume Rousse over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF