From 9b442481051d4355569326476fbad13ff42e3d50 Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Mon, 22 Mar 2021 21:55:51 +0100 Subject: [PATCH] Fix missing GRPC boolean check in GRPC template (#95) --- CHANGELOG.md | 1 + templates/http/grpc.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2269177..30d8b1ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ BUG FIXES: * Add `state` parameter to package module in Molecule verification tests. * In App Protect environments on SELinux enforced systems, the `nginx -t` handler fails when run from a directory that the nginx process' user does not have access to. +* Fix missing GRPC boolean check in GRPC template. ## 0.3.3 (January 28, 2021) diff --git a/templates/http/grpc.j2 b/templates/http/grpc.j2 index 3dbb88c7..db8c451b 100644 --- a/templates/http/grpc.j2 +++ b/templates/http/grpc.j2 @@ -6,7 +6,7 @@ {% macro grpc_global(grpc) %} {% if grpc['bind'] is defined %} -grpc_bind{{ ' off' if not grpc['bind'] }}{{ (' ' + grpc['bind']['address']) if grpc['bind']['address'] is defined }}{{' transparent' if (grpc['bind']['transparent'] is defined and grpc['bind']['transparent']) }}; +grpc_bind{{ ' off' if not grpc['bind'] }}{{ (' ' + grpc['bind']['address']) if grpc['bind']['address'] is defined }}{{' transparent' if (grpc['bind']['transparent'] is defined and grpc['bind']['transparent']) | bool }}; {% endif %} {% if grpc['buffer_size'] is defined %} grpc_buffer_size {{ grpc['buffer_size'] }};