[9521] in athena10
Re: [Debathena] #1032: printing-config's clusterinfo lookup
daemon@ATHENA.MIT.EDU (Debathena Trac)
Thu Jul 19 12:59:27 2012
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
From: "Debathena Trac" <debathena@MIT.EDU>
Cc: debathena@MIT.EDU
To: jdreed@MIT.EDU, amu@MIT.EDU
Date: Thu, 19 Jul 2012 16:59:23 -0000
Reply-To:
Message-ID: <057.701095baaa51fc417fc0e4c727b8ab6f@mit.edu>
In-Reply-To: <042.728e3f689fd32345693c1a3bad770a95@mit.edu>
Content-Transfer-Encoding: 8bit
#1032: printing-config's clusterinfo lookup bypasses local clusterinfo
--------------------+--------------------------------
Reporter: jdreed | Owner:
Type: defect | Status: committed
Priority: normal | Milestone: Precise Release
Component: -- | Resolution:
Keywords: | Upstream bug:
--------------------+--------------------------------
Comment (by amu):
There's a literal `lsb_release` module; sorry if that was unclear.
{{{
$ lsb_release -sc
wheezy
$ python -c 'import lsb_release; print
lsb_release.get_distro_information().get("CODENAME")'
wheezy
}}}
This approach works at least as far back as `lucid`; I don't have ready
access to anything older. That said, I can't argue too much with working
code; it's just a matter of style.
--
Ticket URL: <https://athena10.mit.edu/trac/ticket/1032#comment:5>
Debathena <http://debathena.mit.edu>
MIT Debathena Project