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