From a64da0e5a3b1bc6a2f91bcb8edec2f04e5bb8b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 22 Nov 2023 16:36:00 -1000 Subject: [PATCH] Remove legacy top-scope syntax --- templates/my.cnf.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/my.cnf.erb b/templates/my.cnf.erb index f2185744..953cf768 100644 --- a/templates/my.cnf.erb +++ b/templates/my.cnf.erb @@ -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 %>