X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/33eef04ba4e72c8c020ade293003b77fc76d0083..b18a26a57c6ee708128613c6f0427403d85cfa0f:/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