Project

General

Profile

Bug #1884

Operating System field Is empty on debian wheezy

Added by aurelien vaillant almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Facts
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

When listing host on Foreman
Operating system field Is empty for wheezy (debian testing)
Maybe also empty for Unstable

On lenny:
Operating System -> Debian 5.0
On squeeze:
Operating System -> Debian 6.0

  1. On squeeze

facter |grep "lsb\|operating"

lsbdistcodename => squeeze
lsbdistdescription => Debian GNU/Linux 6.0.5 (squeeze)
lsbdistid => Debian
lsbdistrelease => 6.0.5
lsbmajdistrelease => 6
operatingsystem => Debian
operatingsystemrelease => 6.0.5

  1. On wheezy

cat /etc/debian_version

wheezy/sid

dpkg -l |grep lsb

ii lsb-base
ii lsb-release

facter |grep "lsb\|operating"

lsbdistcodename => wheezy
lsbdistdescription => Debian GNU/Linux testing (wheezy)
lsbdistid => Debian
lsbdistrelease => testing
lsbmajdistrelease => testing
operatingsystem => Debian
operatingsystemrelease => wheezy/sid

Associated revisions

Revision c604dec7 (diff)
Added by Nicolas Dandrimont over 9 years ago

Fixes #1884 - hardcode a version number for Debian's testing/unstable suites

History

#1 Updated by Greg Sutcliffe almost 10 years ago

  • Assignee set to Greg Sutcliffe

I can take a look at this. I tried to fix it a while back, but never finished it :)

#2 Updated by Nicolas Dandrimont over 9 years ago

Here is a tested patch special-casing Debian's testing and unstable versions, assigning them a version number.

I future-proofed it somewhat by taking into account the codename for the future future stable version, jessie.

Have a nice day,
Nicolas

#3 Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Ready For Testing

#4 Updated by Ohad Levy over 9 years ago

  • Target version set to 1.1

#5 Updated by Nicolas Dandrimont over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF