From bb6d9177594e6a22bfe3d584f064259d54524725 Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Tue, 29 Oct 2024 15:55:33 -0600 Subject: [PATCH] fix ansible when no profile configure is given Signed-off-by: Florent Poinsard --- ansible/roles/vtgate/templates/vtgate.conf.j2 | 2 +- ansible/roles/vttablet/templates/vttablet.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/vtgate/templates/vtgate.conf.j2 b/ansible/roles/vtgate/templates/vtgate.conf.j2 index 5c07b985..c3133b72 100644 --- a/ansible/roles/vtgate/templates/vtgate.conf.j2 +++ b/ansible/roles/vtgate/templates/vtgate.conf.j2 @@ -22,7 +22,7 @@ EXTRA_VTGATE_FLAGS="\ --vschema_ddl_authorized_users \"%\" \ --vtgate-config-terse-errors \ --tablet_types_to_wait REPLICA \ - {% if vitess_profile_binary == 'vtgate' %}\ + {% if vitess_profile_binary is defined and vitess_profile_binary == 'vtgate' %}\ --pprof=\"{{vitess_profile_mode}},waitSig,path=/pprof/{{arewefastyet_exec_uuid}}/vtgate-{{ gateway.id }}\" \ {% endif %}\ {{gateway.extra_flags|default("")}} \ diff --git a/ansible/roles/vttablet/templates/vttablet.conf.j2 b/ansible/roles/vttablet/templates/vttablet.conf.j2 index 592866ea..487d8985 100644 --- a/ansible/roles/vttablet/templates/vttablet.conf.j2 +++ b/ansible/roles/vttablet/templates/vttablet.conf.j2 @@ -44,7 +44,7 @@ EXTRA_VTTABLET_FLAGS="--alsologtostderr \ {% endif %} --grpc_max_message_size=67108864 \ --db_charset=utf8 \ - {% if vitess_profile_binary == 'vttablet' %}\ + {% if vitess_profile_binary is defined and vitess_profile_binary == 'vttablet' %}\ --pprof=\"{{vitess_profile_mode}},waitSig,path=/pprof/{{arewefastyet_exec_uuid}}/vttablet-{{ tablet.id }}\" \ {% endif %}\ {{ tablet.extra_flags | default("") }} \