chef/cookbooks/pivotal_ci/templates/default/nginx-htaccess.erb in lobot-1.0.pre vs chef/cookbooks/pivotal_ci/templates/default/nginx-htaccess.erb in lobot-2.0.0pre
- old
+ new
@@ -1,3 +1,3 @@
-<% node["nginx_settings"]["basic_auth_users"].each do |user| %>
-<%= "#{user["username"]}:#{user["password"].crypt("AA")}" %>
-<% end %>
+<% if node['nginx']['basic_auth_user'] && node['nginx']['basic_auth_password'] %>
+<%= "#{node['nginx']['basic_auth_user']}:#{node['nginx']['basic_auth_password'].crypt("AA")}" %>
+<% end %>
\ No newline at end of file