From 083cdd1e822ad9d3e6ccb88eaf57a62b722cb2a3 Mon Sep 17 00:00:00 2001 From: Adrian Sutton Date: Sat, 12 Mar 2022 17:36:15 +1000 Subject: [PATCH] Fix reference of undefined variable. (#35) --- templates/config.toml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/config.toml.j2 b/templates/config.toml.j2 index 0d8d914..427ea83 100644 --- a/templates/config.toml.j2 +++ b/templates/config.toml.j2 @@ -7,7 +7,7 @@ logging="{{besu_log_level}}" node-private-key-file="{{besu_node_private_key_file}}" {% endif %} -{% if besu_required_blocks|length > 0 %} +{% if besu_required_blocks is defined and besu_required_blocks|length > 0 %} required-blocks=[{{besu_required_blocks|map('to_json')|join(',')}}] {% endif %}