projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8a2c44
)
Scope fqdn
author
Stephen Gran
<steve@lobefin.net>
Mon, 29 Jun 2009 07:05:41 +0000
(08:05 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Mon, 29 Jun 2009 07:05:41 +0000
(08:05 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/hosts.rb
patch
|
blob
|
history
diff --git
a/facts/hosts.rb
b/facts/hosts.rb
index
3e6b2d9
..
82395ed
100644
(file)
--- a/
facts/hosts.rb
+++ b/
facts/hosts.rb
@@
-4,7
+4,7
@@
Facter.add("brokenhosts") do
if FileTest.exist?("/etc/hosts")
IO.foreach("/etc/hosts") do |x|
x.split.each do |y|
- if y ==
fqdn
+ if y ==
Facter.value("fqdn")
brokenhosts = "false"
break
end