projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop m68k@buildd.debian.org -> m68k-build@nocrew.org rewrite
[mirror/dsa-puppet.git]
/
modules
/
ntpdate
/
templates
/
etc-default-ntpdate.erb
diff --git
a/modules/ntpdate/templates/etc-default-ntpdate.erb
b/modules/ntpdate/templates/etc-default-ntpdate.erb
index
ee12a56
..
5d8b352
100644
(file)
--- a/
modules/ntpdate/templates/etc-default-ntpdate.erb
+++ b/
modules/ntpdate/templates/etc-default-ntpdate.erb
@@
-16,7
+16,7
@@
NTPSERVERS=""
out = []
require 'resolv'
out = []
require 'resolv'
-
scope.lookupvar('ntpservers').to_a
.flatten.each do |n|
+
[scope.lookupvar('ntpservers')]
.flatten.each do |n|
begin
ip = Resolv.getaddress(n)
out << "NTPSERVERS=\"$NTPSERVERS #{ip}\" # #{n}"
begin
ip = Resolv.getaddress(n)
out << "NTPSERVERS=\"$NTPSERVERS #{ip}\" # #{n}"