Skip to content

Commit

Permalink
Merge pull request #208 from voxpupuli/remove-legacy-top-scope-syntax
Browse files Browse the repository at this point in the history
Remove legacy top-scope syntax
  • Loading branch information
smortex authored Feb 28, 2024
2 parents e4d63c8 + a64da0e commit c964e4f
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 c964e4f

Please sign in to comment.