This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

simplify array handling

  • Loading branch information...
1 parent ed137c7 commit 1306cf50b344c1253217dae8615514cdd6b25cd4 Matt Whiteley committed with jtimberman Dec 14, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 users/templates/default/authorized_keys.erb
@@ -1,5 +1,4 @@
# Dropped off by Chef, thanks!
-<% key_list = @ssh_keys.kind_of?(Array) ? @ssh_keys : [ @ssh_keys ] %>
-<% key_list.each do |key| %>
+<% Array(@ssh_keys).each do |key| %>
<%= key %>
<% end %>

0 comments on commit 1306cf5

Please sign in to comment.