Skip to content

Commit

Permalink
Remove legacy top-scope syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Nov 23, 2023
1 parent 4155750 commit a64da0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/my.cnf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
prompt = 'Admin> '

[client]
<% if scope.lookupvar('::proxysql::admin_listen_socket') != '' -%>
socket = <%= scope.lookupvar('::proxysql::admin_listen_socket') %>
<% if scope.lookupvar('proxysql::admin_listen_socket') != '' -%>
socket = <%= scope.lookupvar('proxysql::admin_listen_socket') %>
<% else -%>
host = <%= scope.lookupvar('::proxysql::admin_listen_ip') %>
port = <%= scope.lookupvar('::proxysql::admin_listen_port') %>
host = <%= scope.lookupvar('proxysql::admin_listen_ip') %>
port = <%= scope.lookupvar('proxysql::admin_listen_port') %>
<% end -%>
user = <%= scope.lookupvar('::proxysql::admin_username') %>
password = <%= scope.lookupvar('::proxysql::admin_password').unwrap %>
user = <%= scope.lookupvar('proxysql::admin_username') %>
password = <%= scope.lookupvar('proxysql::admin_password').unwrap %>

0 comments on commit a64da0e

Please sign in to comment.