Hi, been trying to wrap my head around fetching the latest version from docker hub registry, consider the following snippet:
{% set value_json = [{"layer": "", "name": "latest"}, {"layer": "", "name": "0.100.0.dev20190921"}, {"layer": "", "name": "0.100.0.dev20190922"}, {"layer": "", "name": "0.100.0.dev20190924"}, {"layer": "", "name": "0.100.0.dev20190925"}, {"layer": "", "name": "0.100.0.dev20190926"}, {"layer": "", "name": "0.100.0.dev20190927"}, {"layer": "", "name": "0.100.0.dev20191001"}, {"layer": "", "name": "0.100.0.dev20191002"}, {"layer": "", "name": "0.100.0.dev20191003"}, {"layer": "", "name": "0.100.0b0"}, {"layer": "", "name": "0.100.0b1"}, {"layer": "", "name": "0.100.0b2"}, {"layer": "", "name": "0.100.0b3"}, {"layer": "", "name": "0.100.1"}, {"layer": "", "name": "0.100.2"}, {"layer": "", "name": "0.100.3"}, {"layer": "", "name": "0.101.0"}, {"layer": "", "name": "0.101.0.dev20191004"}, {"layer": "", "name": "0.101.0.dev20191005"}, {"layer": "", "name": "0.101.0.dev20191006"}, {"layer": "", "name": "0.101.0.dev20191008"}, {"layer": "", "name": "0.101.0.dev20191011"}, {"layer": "", "name": "0.101.0.dev20191012"}, {"layer": "", "name": "0.101.0.dev20191013"}, {"layer": "", "name": "0.101.0.dev20191014"}, {"layer": "", "name": "0.101.0.dev20191015"}, {"layer": "", "name": "0.101.0.dev20191016"}, {"layer": "", "name": "0.101.0.dev20191017"}, {"layer": "", "name": "0.101.0.dev20191018"}, {"layer": "", "name": "0.101.0.dev20191019"}, {"layer": "", "name": "0.101.0.dev20191020"}, {"layer": "", "name": "0.101.0.dev20191021"}, {"layer": "", "name": "0.101.0.dev20191022"}, {"layer": "", "name": "0.101.0.dev20191023"}, {"layer": "", "name": "0.101.0b0"}, {"layer": "", "name": "0.101.0b1"}, {"layer": "", "name": "0.101.0b2"}, {"layer": "", "name": "0.101.0b3"}, {"layer": "", "name": "0.101.0b4"}, {"layer": "", "name": "0.101.1"}, {"layer": "", "name": "0.101.2"}, {"layer": "", "name": "0.101.3"}, {"layer": "", "name": "0.102.0"}, {"layer": "", "name": "0.102.0.dev20191024"}, {"layer": "", "name": "0.102.0.dev20191025"}, {"layer": "", "name": "0.102.0.dev20191026"}, {"layer": "", "name": "0.102.0.dev20191027"}, {"layer": "", "name": "0.102.0.dev20191028"}, {"layer": "", "name": "0.102.0.dev20191030"}, {"layer": "", "name": "0.102.0.dev20191031"}, {"layer": "", "name": "0.102.0.dev20191101"}, {"layer": "", "name": "0.102.0.dev20191102"}, {"layer": "", "name": "0.102.0.dev20191103"}, {"layer": "", "name": "0.102.0.dev20191104"}, {"layer": "", "name": "0.102.0.dev20191105"}, {"layer": "", "name": "0.102.0.dev20191106"}, {"layer": "", "name": "0.102.0.dev20191107"}, {"layer": "", "name": "0.102.0.dev20191108"}, {"layer": "", "name": "0.102.0.dev20191109"}, {"layer": "", "name": "0.102.0.dev20191110"}, {"layer": "", "name": "0.102.0.dev20191111"}, {"layer": "", "name": "0.102.0.dev20191112"}, {"layer": "", "name": "0.102.0.dev20191113"}, {"layer": "", "name": "0.102.0.dev20191114"}, {"layer": "", "name": "0.102.0.dev20191116"}, {"layer": "", "name": "0.102.0.dev20191117"}, {"layer": "", "name": "0.102.0.dev20191118"}, {"layer": "", "name": "0.102.0.dev20191121"}, {"layer": "", "name": "0.102.0.dev20191122"}, {"layer": "", "name": "0.102.0.dev20191123"}, {"layer": "", "name": "0.102.0.dev20191125"}, {"layer": "", "name": "0.102.0.dev20191126"}, {"layer": "", "name": "0.102.0.dev20191127"}, {"layer": "", "name": "0.102.0.dev20191128"}, {"layer": "", "name": "0.102.0.dev20191129"}, {"layer": "", "name": "0.102.0.dev20191130"}, {"layer": "", "name": "0.102.0.dev20191201"}, {"layer": "", "name": "0.102.0.dev20191202"}, {"layer": "", "name": "0.102.0.dev20191203"}, {"layer": "", "name": "0.102.0.dev20191204"}, {"layer": "", "name": "0.102.0.dev20191205"}, {"layer": "", "name": "0.102.0b0"}, {"layer": "", "name": "0.102.0b1"}, {"layer": "", "name": "0.102.0b2"}, {"layer": "", "name": "0.102.0b3"}, {"layer": "", "name": "0.102.1"}, {"layer": "", "name": "0.102.2"}, {"layer": "", "name": "0.102.3"}, {"layer": "", "name": "0.103.0"}, {"layer": "", "name": "0.103.0b0"}, {"layer": "", "name": "0.103.0b1"}, {"layer": "", "name": "0.103.1"}, {"layer": "", "name": "0.103.2"}, {"layer": "", "name": "0.103.3"}, {"layer": "", "name": "0.103.4"}, {"layer": "", "name": "0.103.5"}, {"layer": "", "name": "0.103.6"}, {"layer": "", "name": "0.104.0"}, {"layer": "", "name": "0.104.0.dev20191206"}, {"layer": "", "name": "0.104.0.dev20191207"}, {"layer": "", "name": "0.104.0.dev20191208"}, {"layer": "", "name": "0.104.0.dev20191209"}, {"layer": "", "name": "0.104.0.dev20191211"}, {"layer": "", "name": "0.104.0.dev20191212"}, {"layer": "", "name": "0.104.0.dev20191213"}, {"layer": "", "name": "0.104.0.dev20191214"}, {"layer": "", "name": "0.104.0.dev20191215"}, {"layer": "", "name": "0.104.0.dev20191216"}, {"layer": "", "name": "0.104.0.dev20191218"}, {"layer": "", "name": "0.104.0.dev20191219"}, {"layer": "", "name": "0.104.0.dev20191220"}, {"layer": "", "name": "0.104.0.dev20191221"}, {"layer": "", "name": "0.104.0.dev20191222"}, {"layer": "", "name": "0.104.0.dev20191223"}, {"layer": "", "name": "0.104.0.dev20191224"}, {"layer": "", "name": "0.104.0.dev20191225"}, {"layer": "", "name": "0.104.0.dev20191226"}, {"layer": "", "name": "0.104.0.dev20191228"}, {"layer": "", "name": "0.104.0.dev20191230"}, {"layer": "", "name": "0.104.0.dev20191231"}, {"layer": "", "name": "0.104.0.dev20200101"}, {"layer": "", "name": "0.104.0.dev20200102"}, {"layer": "", "name": "0.104.0.dev20200103"}, {"layer": "", "name": "0.104.0.dev20200104"}, {"layer": "", "name": "0.104.0.dev20200106"}, {"layer": "", "name": "0.104.0.dev20200107"}, {"layer": "", "name": "0.104.0.dev20200108"}, {"layer": "", "name": "0.104.0b0"}, {"layer": "", "name": "0.104.0b1"}, {"layer": "", "name": "0.104.0b2"}, {"layer": "", "name": "0.104.0b3"}, {"layer": "", "name": "0.104.0b5"}, {"layer": "", "name": "0.104.1"}, {"layer": "", "name": "0.104.2"}, {"layer": "", "name": "0.104.3"}, {"layer": "", "name": "0.105.0"}, {"layer": "", "name": "0.105.0.dev20200109"}, {"layer": "", "name": "0.105.0.dev20200110"}, {"layer": "", "name": "0.105.0.dev20200111"}, {"layer": "", "name": "0.105.0.dev20200112"}, {"layer": "", "name": "0.105.0.dev20200113"}, {"layer": "", "name": "0.105.0.dev20200114"}, {"layer": "", "name": "0.105.0.dev20200115"}, {"layer": "", "name": "0.105.0.dev20200116"}, {"layer": "", "name": "0.105.0.dev20200117"}, {"layer": "", "name": "0.105.0.dev20200118"}, {"layer": "", "name": "0.105.0.dev20200119"}, {"layer": "", "name": "0.105.0.dev20200120"}, {"layer": "", "name": "0.105.0.dev20200121"}, {"layer": "", "name": "0.105.0.dev20200122"}, {"layer": "", "name": "0.105.0.dev20200123"}, {"layer": "", "name": "0.105.0.dev20200124"}, {"layer": "", "name": "0.105.0.dev20200125"}, {"layer": "", "name": "0.105.0.dev20200126"}, {"layer": "", "name": "0.105.0.dev20200127"}, {"layer": "", "name": "0.105.0.dev20200128"}, {"layer": "", "name": "0.105.0.dev20200129"}, {"layer": "", "name": "0.105.0.dev20200131"}, {"layer": "", "name": "0.105.0.dev20200201"}, {"layer": "", "name": "0.105.0.dev20200202"}, {"layer": "", "name": "0.105.0.dev20200203"}, {"layer": "", "name": "0.105.0.dev20200204"}, {"layer": "", "name": "0.105.0.dev20200205"}, {"layer": "", "name": "0.105.0b0"}, {"layer": "", "name": "0.105.0b1"}, {"layer": "", "name": "0.105.0b2"}, {"layer": "", "name": "0.105.0b3"}, {"layer": "", "name": "0.105.0b4"}, {"layer": "", "name": "0.105.0b5"}, {"layer": "", "name": "0.105.0b6"}, {"layer": "", "name": "0.105.0b7"}, {"layer": "", "name": "0.105.1"}, {"layer": "", "name": "0.105.2"}, {"layer": "", "name": "0.105.3"}, {"layer": "", "name": "0.105.4"}, {"layer": "", "name": "0.105.5"}, {"layer": "", "name": "0.106.0"}, {"layer": "", "name": "0.106.0.dev20200206"}, {"layer": "", "name": "0.106.0.dev20200207"}, {"layer": "", "name": "0.106.0.dev20200208"}, {"layer": "", "name": "0.106.0.dev20200209"}, {"layer": "", "name": "0.106.0.dev20200210"}, {"layer": "", "name": "0.106.0.dev20200211"}, {"layer": "", "name": "0.106.0.dev20200212"}, {"layer": "", "name": "0.106.0.dev20200213"}, {"layer": "", "name": "0.106.0.dev20200214"}, {"layer": "", "name": "0.106.0.dev20200215"}, {"layer": "", "name": "0.106.0.dev20200216"}, {"layer": "", "name": "0.106.0.dev20200217"}, {"layer": "", "name": "0.106.0.dev20200218"}, {"layer": "", "name": "0.106.0.dev20200219"}, {"layer": "", "name": "0.106.0.dev20200220"}, {"layer": "", "name": "0.106.0b0"}, {"layer": "", "name": "0.106.0b1"}, {"layer": "", "name": "0.106.0b2"}, {"layer": "", "name": "0.106.0b4"}, {"layer": "", "name": "0.106.0b5"}, {"layer": "", "name": "0.106.1"}, {"layer": "", "name": "0.106.2"}, {"layer": "", "name": "0.106.3"}, {"layer": "", "name": "0.106.4"}, {"layer": "", "name": "0.106.5"}, {"layer": "", "name": "0.106.6"}, {"layer": "", "name": "0.107.0.dev20200221"}, {"layer": "", "name": "0.107.0.dev20200222"}, {"layer": "", "name": "0.107.0.dev20200223"}, {"layer": "", "name": "0.107.0.dev20200224"}, {"layer": "", "name": "0.107.0.dev20200225"}, {"layer": "", "name": "0.107.0.dev20200226"}, {"layer": "", "name": "0.107.0.dev20200227"}, {"layer": "", "name": "0.107.0.dev20200228"}, {"layer": "", "name": "0.107.0.dev20200229"}, {"layer": "", "name": "0.107.0.dev20200301"}, {"layer": "", "name": "0.107.0.dev20200302"}, {"layer": "", "name": "0.107.0.dev20200303"}, {"layer": "", "name": "0.107.0.dev20200304"}, {"layer": "", "name": "0.107.0.dev20200305"}, {"layer": "", "name": "0.107.0.dev20200306"}, {"layer": "", "name": "0.107.0.dev20200307"}, {"layer": "", "name": "0.107.0.dev20200308"}, {"layer": "", "name": "0.107.0.dev20200309"}, {"layer": "", "name": "0.107.0.dev20200310"}, {"layer": "", "name": "0.107.0.dev20200311"}, {"layer": "", "name": "0.107.0.dev20200312"}, {"layer": "", "name": "0.107.0b0"}, {"layer": "", "name": "0.107.0b1"}, {"layer": "", "name": "0.107.0b2"}, {"layer": "", "name": "0.107.0b3"}, {"layer": "", "name": "0.108.0.dev20200313"}, {"layer": "", "name": "0.108.0.dev20200314"}, {"layer": "", "name": "0.14.2"}, {"layer": "", "name": "0.15"}, {"layer": "", "name": "0.16.1"}, {"layer": "", "name": "0.17.3"}, {"layer": "", "name": "0.18"}, {"layer": "", "name": "0.19"}, {"layer": "", "name": "0.19.1"}, {"layer": "", "name": "0.19.2"}, {"layer": "", "name": "0.19.3"}, {"layer": "", "name": "0.19.4"}, {"layer": "", "name": "0.20"}, {"layer": "", "name": "0.20.1"}, {"layer": "", "name": "0.20.2"}, {"layer": "", "name": "0.20.3"}, {"layer": "", "name": "0.21"}, {"layer": "", "name": "0.21.1"}, {"layer": "", "name": "0.21.2"}, {"layer": "", "name": "0.22"}, {"layer": "", "name": "0.23"}, {"layer": "", "name": "0.23.1"}, {"layer": "", "name": "0.24"}, {"layer": "", "name": "0.24.1"}, {"layer": "", "name": "0.25"}, {"layer": "", "name": "0.25.1"}, {"layer": "", "name": "0.25.2"}, {"layer": "", "name": "0.26"}, {"layer": "", "name": "0.26.1"}, {"layer": "", "name": "0.26.2"}, {"layer": "", "name": "0.26.3"}, {"layer": "", "name": "0.27.0"}, {"layer": "", "name": "0.27.1"}, {"layer": "", "name": "0.27.2"}, {"layer": "", "name": "0.28"}, {"layer": "", "name": "0.28.1"}, {"layer": "", "name": "0.28.2"}, {"layer": "", "name": "0.29"}, {"layer": "", "name": "0.29.2"}, {"layer": "", "name": "0.29.3"}, {"layer": "", "name": "0.29.4"}, {"layer": "", "name": "0.29.5"}, {"layer": "", "name": "0.29.6"}, {"layer": "", "name": "0.29.7"}, {"layer": "", "name": "0.30"}, {"layer": "", "name": "0.30.1"}, {"layer": "", "name": "0.30.2"}, {"layer": "", "name": "0.31"}, {"layer": "", "name": "0.31.1"}, {"layer": "", "name": "0.32"}, {"layer": "", "name": "0.32.1"}, {"layer": "", "name": "0.32.2"}, {"layer": "", "name": "0.32.3"}, {"layer": "", "name": "0.32.4"}, {"layer": "", "name": "0.33"}, {"layer": "", "name": "0.33.1"}, {"layer": "", "name": "0.33.2"}, {"layer": "", "name": "0.33.3"}, {"layer": "", "name": "0.33.4"}, {"layer": "", "name": "0.34"}, {"layer": "", "name": "0.34.1"}, {"layer": "", "name": "0.34.2"}, {"layer": "", "name": "0.34.3"}, {"layer": "", "name": "0.34.4"}, {"layer": "", "name": "0.34.5"}, {"layer": "", "name": "0.35"}, {"layer": "", "name": "0.35.1"}, {"layer": "", "name": "0.35.2"}, {"layer": "", "name": "0.35.3"}, {"layer": "", "name": "0.36"}, {"layer": "", "name": "0.36.1"}, {"layer": "", "name": "0.37"}, {"layer": "", "name": "0.37.1"}, {"layer": "", "name": "0.38"}, {"layer": "", "name": "0.38.1"}, {"layer": "", "name": "0.38.2"}, {"layer": "", "name": "0.38.3"}, {"layer": "", "name": "0.38.4"}, {"layer": "", "name": "0.39"}, {"layer": "", "name": "0.39.1"}, {"layer": "", "name": "0.39.2"}, {"layer": "", "name": "0.39.3"}, {"layer": "", "name": "0.40"}, {"layer": "", "name": "0.40.1"}, {"layer": "", "name": "0.40.2"}, {"layer": "", "name": "0.41"}, {"layer": "", "name": "0.42"}, {"layer": "", "name": "0.42.1"}, {"layer": "", "name": "0.42.2"}, {"layer": "", "name": "0.42.3"}, {"layer": "", "name": "0.42.4"}, {"layer": "", "name": "0.43"}, {"layer": "", "name": "0.43.1"}, {"layer": "", "name": "0.43.2"}, {"layer": "", "name": "0.44"}, {"layer": "", "name": "0.44.1"}, {"layer": "", "name": "0.44.2"}, {"layer": "", "name": "0.45"}, {"layer": "", "name": "0.45.1"}, {"layer": "", "name": "0.46"}, {"layer": "", "name": "0.46.1"}, {"layer": "", "name": "0.47"}, {"layer": "", "name": "0.47.1"}, {"layer": "", "name": "0.48"}, {"layer": "", "name": "0.48.1"}, {"layer": "", "name": "0.49"}, {"layer": "", "name": "0.49.1"}, {"layer": "", "name": "0.50"}, {"layer": "", "name": "0.50.2"}, {"layer": "", "name": "0.51"}, {"layer": "", "name": "0.51.1"}, {"layer": "", "name": "0.51.2"}, {"layer": "", "name": "0.52"}, {"layer": "", "name": "0.52.1"}, {"layer": "", "name": "0.53"}, {"layer": "", "name": "0.53.1"}, {"layer": "", "name": "0.54"}, {"layer": "", "name": "0.55"}, {"layer": "", "name": "0.55.1"}, {"layer": "", "name": "0.55.2"}, {"layer": "", "name": "0.56"}, {"layer": "", "name": "0.56.1"}, {"layer": "", "name": "0.56.2"}, {"layer": "", "name": "0.57"}, {"layer": "", "name": "0.57.1"}, {"layer": "", "name": "0.57.2"}, {"layer": "", "name": "0.57.3"}, {"layer": "", "name": "0.58"}, {"layer": "", "name": "0.58.1"}, {"layer": "", "name": "0.59"}, {"layer": "", "name": "0.59.1"}, {"layer": "", "name": "0.59.2"}, {"layer": "", "name": "0.60"}, {"layer": "", "name": "0.60.1"}, {"layer": "", "name": "0.61"}, {"layer": "", "name": "0.61.1"}, {"layer": "", "name": "0.62.0"}, {"layer": "", "name": "0.62.1"}, {"layer": "", "name": "0.63"}, {"layer": "", "name": "0.63.1"}, {"layer": "", "name": "0.63.2"}, {"layer": "", "name": "0.63.3"}, {"layer": "", "name": "0.64.0"}, {"layer": "", "name": "0.64.1"}, {"layer": "", "name": "0.64.2"}, {"layer": "", "name": "0.64.3"}, {"layer": "", "name": "0.65.0"}, {"layer": "", "name": "0.65.1"}, {"layer": "", "name": "0.65.2"}, {"layer": "", "name": "0.65.3"}, {"layer": "", "name": "0.65.4"}, {"layer": "", "name": "0.65.5"}, {"layer": "", "name": "0.65.6"}, {"layer": "", "name": "0.66.0"}, {"layer": "", "name": "0.66.0.b2"}, {"layer": "", "name": "0.66.0.beta0"}, {"layer": "", "name": "0.66.0.beta1"}, {"layer": "", "name": "0.66.0b3"}, {"layer": "", "name": "0.66.1"}, {"layer": "", "name": "0.66.1b0"}, {"layer": "", "name": "0.67.0"}, {"layer": "", "name": "0.67.0b0"}, {"layer": "", "name": "0.67.0b1"}, {"layer": "", "name": "0.67.1"}, {"layer": "", "name": "0.68.0"}, {"layer": "", "name": "0.68.0b0"}, {"layer": "", "name": "0.68.0b1"}, {"layer": "", "name": "0.68.0b2"}, {"layer": "", "name": "0.68.1"}, {"layer": "", "name": "0.69.0"}, {"layer": "", "name": "0.69.0b0"}, {"layer": "", "name": "0.69.0b1"}, {"layer": "", "name": "0.69.0b2"}, {"layer": "", "name": "0.69.0b3"}, {"layer": "", "name": "0.69.1"}, {"layer": "", "name": "0.70.0"}, {"layer": "", "name": "0.70.0b0"}, {"layer": "", "name": "0.70.0b1"}, {"layer": "", "name": "0.70.0b2"}, {"layer": "", "name": "0.70.0b4"}, {"layer": "", "name": "0.70.0b5"}, {"layer": "", "name": "0.70.0b6"}, {"layer": "", "name": "0.70.0b7"}, {"layer": "", "name": "0.70.1"}, {"layer": "", "name": "0.71.0"}, {"layer": "", "name": "0.71.0b0"}, {"layer": "", "name": "0.71.0b1"}, {"layer": "", "name": "0.72.0"}, {"layer": "", "name": "0.72.0b0"}, {"layer": "", "name": "0.72.0b1"}, {"layer": "", "name": "0.72.0b2"}, {"layer": "", "name": "0.72.0b4"}, {"layer": "", "name": "0.72.0b5"}, {"layer": "", "name": "0.72.0b6"}, {"layer": "", "name": "0.72.0b7"}, {"layer": "", "name": "0.72.0b8"}, {"layer": "", "name": "0.72.0b9"}, {"layer": "", "name": "0.72.1"}, {"layer": "", "name": "0.73.0"}, {"layer": "", "name": "0.73.0b0"}, {"layer": "", "name": "0.73.0b1"}, {"layer": "", "name": "0.73.0b2"}, {"layer": "", "name": "0.73.0b3"}, {"layer": "", "name": "0.73.0b4"}, {"layer": "", "name": "0.73.0b6"}, {"layer": "", "name": "0.73.1"}, {"layer": "", "name": "0.73.2"}, {"layer": "", "name": "0.74.0"}, {"layer": "", "name": "0.74.0b0"}, {"layer": "", "name": "0.74.0b1"}, {"layer": "", "name": "0.74.0b2"}, {"layer": "", "name": "0.74.0b3"}, {"layer": "", "name": "0.74.0b4"}, {"layer": "", "name": "0.74.1"}, {"layer": "", "name": "0.74.2"}, {"layer": "", "name": "0.75.0"}, {"layer": "", "name": "0.75.0b0"}, {"layer": "", "name": "0.75.0b1"}, {"layer": "", "name": "0.75.1"}, {"layer": "", "name": "0.75.2"}, {"layer": "", "name": "0.75.3"}, {"layer": "", "name": "0.76.0"}, {"layer": "", "name": "0.76.0b0"}, {"layer": "", "name": "0.76.0b1"}, {"layer": "", "name": "0.76.0b2"}, {"layer": "", "name": "0.76.0b3"}, {"layer": "", "name": "0.76.0b4"}, {"layer": "", "name": "0.76.0b5"}, {"layer": "", "name": "0.76.1"}, {"layer": "", "name": "0.76.2"}, {"layer": "", "name": "0.77.0"}, {"layer": "", "name": "0.77.0b0"}, {"layer": "", "name": "0.77.0b1"}, {"layer": "", "name": "0.77.0b2"}, {"layer": "", "name": "0.77.0b3"}, {"layer": "", "name": "0.77.0b4"}, {"layer": "", "name": "0.77.1"}, {"layer": "", "name": "0.77.2"}, {"layer": "", "name": "0.77.3"}, {"layer": "", "name": "0.78.0"}, {"layer": "", "name": "0.78.0b0"}, {"layer": "", "name": "0.78.0b1"}, {"layer": "", "name": "0.78.0b2"}, {"layer": "", "name": "0.78.0b3"}, {"layer": "", "name": "0.78.1"}, {"layer": "", "name": "0.78.2"}, {"layer": "", "name": "0.78.3"}, {"layer": "", "name": "0.79.0"}, {"layer": "", "name": "0.79.0b0"}, {"layer": "", "name": "0.79.0b1"}, {"layer": "", "name": "0.79.0b2"}, {"layer": "", "name": "0.79.0b3"}, {"layer": "", "name": "0.79.1"}, {"layer": "", "name": "0.79.2"}, {"layer": "", "name": "0.79.3"}, {"layer": "", "name": "0.80.0"}, {"layer": "", "name": "0.80.0b0"}, {"layer": "", "name": "0.80.0b1"}, {"layer": "", "name": "0.80.0b2"}, {"layer": "", "name": "0.80.0b3"}, {"layer": "", "name": "0.80.0b4"}, {"layer": "", "name": "0.80.0b5"}, {"layer": "", "name": "0.80.1"}, {"layer": "", "name": "0.80.2"}, {"layer": "", "name": "0.80.3"}, {"layer": "", "name": "0.81.0"}, {"layer": "", "name": "0.81.0b0"}, {"layer": "", "name": "0.81.0b1"}, {"layer": "", "name": "0.81.0b2"}, {"layer": "", "name": "0.81.1"}, {"layer": "", "name": "0.81.2"}, {"layer": "", "name": "0.81.4"}, {"layer": "", "name": "0.81.5"}, {"layer": "", "name": "0.81.6"}, {"layer": "", "name": "0.82.0"}, {"layer": "", "name": "0.82.0b0"}, {"layer": "", "name": "0.82.0b1"}, {"layer": "", "name": "0.82.0b2"}, {"layer": "", "name": "0.82.0b3"}, {"layer": "", "name": "0.82.1"}, {"layer": "", "name": "0.83.0"}, {"layer": "", "name": "0.83.0b0"}, {"layer": "", "name": "0.83.0b1"}, {"layer": "", "name": "0.83.0b3"}, {"layer": "", "name": "0.83.1"}, {"layer": "", "name": "0.83.2"}, {"layer": "", "name": "0.83.3"}, {"layer": "", "name": "0.84.0"}, {"layer": "", "name": "0.84.0b0"}, {"layer": "", "name": "0.84.0b1"}, {"layer": "", "name": "0.84.0b2"}, {"layer": "", "name": "0.84.0b3"}, {"layer": "", "name": "0.84.0b4"}, {"layer": "", "name": "0.84.1"}, {"layer": "", "name": "0.84.2"}, {"layer": "", "name": "0.84.3"}, {"layer": "", "name": "0.84.4"}, {"layer": "", "name": "0.84.5"}, {"layer": "", "name": "0.84.6"}, {"layer": "", "name": "0.85.0"}, {"layer": "", "name": "0.85.0b0"}, {"layer": "", "name": "0.85.1"}, {"layer": "", "name": "0.86.0"}, {"layer": "", "name": "0.86.0b0"}, {"layer": "", "name": "0.86.0b1"}, {"layer": "", "name": "0.86.0b2"}, {"layer": "", "name": "0.86.0b3"}, {"layer": "", "name": "0.86.1"}, {"layer": "", "name": "0.86.2"}, {"layer": "", "name": "0.86.3"}, {"layer": "", "name": "0.86.4"}, {"layer": "", "name": "0.87.0"}, {"layer": "", "name": "0.87.0b0"}, {"layer": "", "name": "0.87.0b1"}, {"layer": "", "name": "0.87.0b4"}, {"layer": "", "name": "0.87.0b5"}, {"layer": "", "name": "0.87.0b6"}, {"layer": "", "name": "0.87.1"}, {"layer": "", "name": "0.88.0"}, {"layer": "", "name": "0.88.1"}, {"layer": "", "name": "0.88.2"}, {"layer": "", "name": "0.89.0"}, {"layer": "", "name": "0.89.0b1"}, {"layer": "", "name": "0.89.0b2"}, {"layer": "", "name": "0.89.0b3"}, {"layer": "", "name": "0.89.1"}, {"layer": "", "name": "0.89.2"}, {"layer": "", "name": "0.90.0"}, {"layer": "", "name": "0.90.0b0"}, {"layer": "", "name": "0.90.0b1"}, {"layer": "", "name": "0.90.0b2"}, {"layer": "", "name": "0.90.0b3"}, {"layer": "", "name": "0.90.0b4"}, {"layer": "", "name": "0.90.0b5"}, {"layer": "", "name": "0.90.0b6"}, {"layer": "", "name": "0.90.0b7"}, {"layer": "", "name": "0.90.1"}, {"layer": "", "name": "0.90.2"}, {"layer": "", "name": "0.91.0"}, {"layer": "", "name": "0.91.0b0"}, {"layer": "", "name": "0.91.0b1"}, {"layer": "", "name": "0.91.0b2"}, {"layer": "", "name": "0.91.0b3"}, {"layer": "", "name": "0.91.0b4"}, {"layer": "", "name": "0.91.0b5"}, {"layer": "", "name": "0.91.1"}, {"layer": "", "name": "0.91.2"}, {"layer": "", "name": "0.91.3"}, {"layer": "", "name": "0.91.4"}, {"layer": "", "name": "0.92.0"}, {"layer": "", "name": "0.92.0b0"}, {"layer": "", "name": "0.92.0b1"}, {"layer": "", "name": "0.92.0b2"}, {"layer": "", "name": "0.92.0b3"}, {"layer": "", "name": "0.92.1"}, {"layer": "", "name": "0.92.2"}, {"layer": "", "name": "0.92.3"}, {"layer": "", "name": "0.93.0"}, {"layer": "", "name": "0.93.0b0"}, {"layer": "", "name": "0.93.0b1"}, {"layer": "", "name": "0.93.0b3"}, {"layer": "", "name": "0.93.0b4"}, {"layer": "", "name": "0.93.1"}, {"layer": "", "name": "0.93.2"}, {"layer": "", "name": "0.94.0"}, {"layer": "", "name": "0.94.0b0"}, {"layer": "", "name": "0.94.0b1"}, {"layer": "", "name": "0.94.0b2"}, {"layer": "", "name": "0.94.0b3"}, {"layer": "", "name": "0.94.0b4"}, {"layer": "", "name": "0.94.0b5"}, {"layer": "", "name": "0.94.0b6"}, {"layer": "", "name": "0.94.0b7"}, {"layer": "", "name": "0.94.0b8"}, {"layer": "", "name": "0.94.1"}, {"layer": "", "name": "0.94.2"}, {"layer": "", "name": "0.94.3"}, {"layer": "", "name": "0.94.4"}, {"layer": "", "name": "0.95.0"}, {"layer": "", "name": "0.95.0b0"}, {"layer": "", "name": "0.95.0b1"}, {"layer": "", "name": "0.95.0b2"}, {"layer": "", "name": "0.95.0b3"}, {"layer": "", "name": "0.95.0b4"}, {"layer": "", "name": "0.95.1"}, {"layer": "", "name": "0.95.2"}, {"layer": "", "name": "0.95.3"}, {"layer": "", "name": "0.95.4"}, {"layer": "", "name": "0.96.0"}, {"layer": "", "name": "0.96.0b0"}, {"layer": "", "name": "0.96.0b1"}, {"layer": "", "name": "0.96.0b2"}, {"layer": "", "name": "0.96.1"}, {"layer": "", "name": "0.96.2"}, {"layer": "", "name": "0.96.3"}, {"layer": "", "name": "0.96.4"}, {"layer": "", "name": "0.96.5"}, {"layer": "", "name": "0.97.0"}, {"layer": "", "name": "0.97.0b0"}, {"layer": "", "name": "0.97.0b1"}, {"layer": "", "name": "0.97.0b2"}, {"layer": "", "name": "0.97.0b3"}, {"layer": "", "name": "0.97.1"}, {"layer": "", "name": "0.97.2"}, {"layer": "", "name": "0.98.0"}, {"layer": "", "name": "0.98.0.dev20190826"}, {"layer": "", "name": "0.98.0.dev20190827"}, {"layer": "", "name": "0.98.0.dev20190828"}, {"layer": "", "name": "0.98.0.dev20190829"}, {"layer": "", "name": "0.98.0b0"}, {"layer": "", "name": "0.98.0b1"}, {"layer": "", "name": "0.98.0b2"}, {"layer": "", "name": "0.98.1"}, {"layer": "", "name": "0.98.2"}, {"layer": "", "name": "0.98.3"}, {"layer": "", "name": "0.98.4"}, {"layer": "", "name": "0.98.5"}, {"layer": "", "name": "0.99.0"}, {"layer": "", "name": "0.99.0.dev20190830"}, {"layer": "", "name": "0.99.0.dev20190831"}, {"layer": "", "name": "0.99.0.dev20190903"}, {"layer": "", "name": "0.99.0.dev20190904"}, {"layer": "", "name": "0.99.0.dev20190905"}, {"layer": "", "name": "0.99.0.dev20190906"}, {"layer": "", "name": "0.99.0.dev20190907"}, {"layer": "", "name": "0.99.0.dev20190908"}, {"layer": "", "name": "0.99.0.dev20190910"}, {"layer": "", "name": "0.99.0.dev20190911"}, {"layer": "", "name": "0.99.0.dev20190912"}, {"layer": "", "name": "0.99.0.dev20190913"}, {"layer": "", "name": "0.99.0.dev20190914"}, {"layer": "", "name": "0.99.0.dev20190915"}, {"layer": "", "name": "0.99.0.dev20190917"}, {"layer": "", "name": "0.99.0.dev20190918"}, {"layer": "", "name": "0.99.0.dev20190919"}, {"layer": "", "name": "0.99.0b0"}, {"layer": "", "name": "0.99.0b1"}, {"layer": "", "name": "0.99.0b2"}, {"layer": "", "name": "0.99.0b3"}, {"layer": "", "name": "0.99.1"}, {"layer": "", "name": "0.99.2"}, {"layer": "", "name": "0.99.3"}, {"layer": "", "name": "beta"}, {"layer": "", "name": "dev"}, {"layer": "", "name": "rc"}, {"layer": "", "name": "stable"}] %}
{% set version_floats = [] %}
{% set highest_known_ver = {"highest_ver": 0.0} %}
{% for image_build in value_json | sort(attribute='name') if image_build.name.split(".")[0]=="0" %}
{% set split_ver = image_build.name.split(".") %}
{% if split_ver|length == 3 %}
{% if split_ver[2] | int != ""%}
{% set ver_str = split_ver[1]+"."+split_ver[2] %}
{% set ver_float = (ver_str | float) %}
{% if ver_float > highest_known_ver["highest_ver"] %}
{% set _ = highest_known_ver.update({'highest_ver': ver_float}) %}
ver_float={{ver_float}}--highest_known_ver={{highest_known_ver["highest_ver"]}}
{% endif %}
{% endif %}
{% endif %}
{% if loop.last %}
{{ highest_known_ver["highest_ver"] }}
{% endif %}
{% endfor %}
For the above code I receive Error rendering template: SecurityError: access to attribute 'update' of 'dict' object is unsafe.
where in fact this is a valid jinja template.
Any suggestions on how to solve this ?
For the above JSON the expected template value would be 0.106.6
Thanks