From: Stephen Gran Date: Sun, 24 Jun 2012 09:04:27 +0000 (+0100) Subject: er, we want a string X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9ccf581ad3391afff3d2297ad345d87a711ffb92;p=mirror%2Fdsa-puppet.git er, we want a string Signed-off-by: Stephen Gran --- diff --git a/modules/ssh/templates/authorized_keys.erb b/modules/ssh/templates/authorized_keys.erb index eb104389a..b7225a566 100644 --- a/modules/ssh/templates/authorized_keys.erb +++ b/modules/ssh/templates/authorized_keys.erb @@ -22,7 +22,7 @@ localkeys <%= ganetikeys = [] allnodeinfo = scope.lookupvar('site::allnodeinfo') - scope.lookupvar('::cluster_nodes').to_a.flatten.split.sort.each do |node| + scope.lookupvar('::cluster_nodes').to_s.split.sort.each do |node| if allnodeinfo.has_key?(node) ganetikeys << "# for ganeti: #{allnodeinfo[node]['hostname'].to_s}" ganetikeys << "from=\"#{allnodeinfo[node]['ipHostNumber'].join(',')}\" #{allnodeinfo[node]['sshRSAHostKey'].to_s}"