Use numeric index

This commit is contained in:
Micke Nordin 2023-02-28 10:55:13 +01:00
parent 36d777ff8f
commit fd61340a4a
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -119,7 +119,9 @@ mysql_query_rules =
mysql_users =
(
<%- @customers.each do |index, customer| -%>
<%- index = 0 -%>
<%- @customers.each do |customer| -%>
{ username = "nextcloud_<%= customer %>", password = "<%= @passwords[index] %>", default_hostgroup = 10, transaction_persistent = <%= @transaction_persistent %>, active = 1 },
<%- index += 1 -%>
<%- end -%>
)