Permalink
Browse files

users cookbook: Don't break if not using Apache.

  • Loading branch information...
1 parent 1bcc39e commit c45d2f99d9b13b39a53dab4039ad4d59e54489b6 @chewi chewi committed with jtimberman Oct 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 users/recipes/sysadmins.rb
View
2 users/recipes/sysadmins.rb
@@ -21,7 +21,7 @@
search(:users, 'groups:sysadmin') do |u|
sysadmin_group << u['id']
- if node[:apache][:allowed_openids]
+ if node[:apache] and node[:apache][:allowed_openids]
Array(u['openid']).compact.each do |oid|
node[:apache][:allowed_openids] << oid unless node[:apache][:allowed_openids].include?(oid)
end

0 comments on commit c45d2f9

Please sign in to comment.