X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/88ef9269d77625e820559d369c1324032ad56d08..307adfed3045a1673b09bccce74acaaf530d3c9b:/cookbooks/accounts/recipes/default.rb diff --git a/cookbooks/accounts/recipes/default.rb b/cookbooks/accounts/recipes/default.rb index e043d9e3e..d6c7806fd 100644 --- a/cookbooks/accounts/recipes/default.rb +++ b/cookbooks/accounts/recipes/default.rb @@ -78,9 +78,7 @@ search(:accounts, "*:*").each do |account| end end - if details[:status] == "administrator" - administrators.push(name.to_s) - end + administrators.push(name.to_s) if details[:status] == "administrator" else user name.to_s do action :remove