From 72aab2b58e51067df43832064883831405401025 Mon Sep 17 00:00:00 2001 From: Stephen Sun <5379172+stephenxs@users.noreply.github.com> Date: Mon, 28 Aug 2023 20:03:39 +0800 Subject: [PATCH] Fix issue: unprintable character is rendered when handling comments in j2 (#16287) Use "{#-" and "-#}" to mark comments in jinja template Signed-off-by: Stephen Sun --- platform/mellanox/mlnx-fw-upgrade.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/mellanox/mlnx-fw-upgrade.j2 b/platform/mellanox/mlnx-fw-upgrade.j2 index a0a7c3d1ec..19d988fe3e 100755 --- a/platform/mellanox/mlnx-fw-upgrade.j2 +++ b/platform/mellanox/mlnx-fw-upgrade.j2 @@ -1,4 +1,4 @@ -{# +{#- Copyright (c) 2020-2023 NVIDIA CORPORATION & AFFILIATES. Apache-2.0 @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -#} +-#} #!/bin/bash declare -r SCRIPT_NAME="$(basename "$0")"