[Pkg-puppet-devel] Bug#675416: facter error `No LSB modules are available.`
Chris Francy
francyci at gmail.com
Fri Jun 1 00:50:06 UTC 2012
Package: facter
Version: 1.6.9-1~bpo60+1
Severity: important
The changes to facter (515fd65 (#11511) Split lsb facts into multiple
files)
seem to have broken things if you have lsb_release installed, but the
lsb-core
package is not installed.
An error `No LSB modules are available.` is sent to stderr each time facter
is run.
Specifically the error seems to come from line 16 in
/usr/lib/ruby/vendor_ruby/facter/lsbrelease.rb
which runs the command `lsb_release -v -s`.
A really simple fix might be something like below, but perhaps some kind of
better error
handling is appropriate here.
--- lsbrelease.rb.orig 2012-05-31 17:30:52.000000000 -0700
+++ lsbrelease.rb 2012-05-31 17:31:07.000000000 -0700
@@ -13,6 +13,6 @@
Facter.add(:lsbrelease) do
confine :kernel => [ :linux, :"gnu/kfreebsd" ]
setcode do
- Facter::Util::Resolution.exec('lsb_release -v -s')
+ Facter::Util::Resolution.exec('lsb_release -v -s 2>/dev/null')
end
end
-- System Information:
Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages facter depends on:
ii bind9-host [host 1:9.7.3.dfsg-1~squeeze4 Version of 'host' bundled with
BIN
ii net-tools 1.60-23 The NET-3 networking toolkit
ii ruby 4.5 An interpreter of
object-oriented
ii ruby-json 1.6.1-1~bpo60+1 JSON library for Ruby
Versions of packages facter recommends:
ii dmidecode 2.9-1.2 Dump Desktop Management
Interface
ii pciutils 1:3.1.7-6 Linux PCI Utilities
facter suggests no packages.
-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20120531/ec8e75b2/attachment.html>
More information about the Pkg-puppet-devel
mailing list