projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move -chains to a different dir on the puppet server
[mirror/dsa-puppet.git]
/
modules
/
debian-org
/
lib
/
facter
/
system-hw.rb
diff --git
a/modules/debian-org/lib/facter/system-hw.rb
b/modules/debian-org/lib/facter/system-hw.rb
index
05a0a86
..
aa50185
100644
(file)
--- a/
modules/debian-org/lib/facter/system-hw.rb
+++ b/
modules/debian-org/lib/facter/system-hw.rb
@@
-1,6
+1,10
@@
Facter.add("systemproductname") do
confine :kernel => :linux
setcode do
- %x{dmidecode -s system-product-name}.chomp
+ if FileTest.exist?("/usr/sbin/dmidecode")
+ %x{/usr/sbin/dmidecode -s system-product-name}.chomp.strip
+ else
+ ''
+ end
end
end