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:
e8e7d52
)
handle lack of v6 addresses nicely
author
Stephen Gran
<steve@lobefin.net>
Sun, 7 Mar 2010 20:24:16 +0000
(20:24 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 7 Mar 2010 20:24:16 +0000
(20:24 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/ipaddresses.rb
patch
|
blob
|
history
diff --git
a/facts/ipaddresses.rb
b/facts/ipaddresses.rb
index
a80fa6b
..
17dbd84
100644
(file)
--- a/
facts/ipaddresses.rb
+++ b/
facts/ipaddresses.rb
@@
-23,8
+23,12
@@
Facter.add("v6ips") do
addrs << $1
end
end
+ ret = addrs.join(",")
+ if ret.empty?
+ ret = 'no'
+ end
setcode do
- addrs.join(",")
+ ret
end
end