[21:57] <xtalkme> Good evening all, I am trying something "simple". Changing the default 127.0.1.1 in etc/hosts with the static ip from local_ipv4. using 22.4.2 and vmware as datasource. when i define the variable local_ipv4 it returns a "CI_MISSING_JINJA_VAR/local_ipv4" in the template. when i define {{ds.meta_data.local_ipv4}} it fails to template and the error is
[21:57] <xtalkme> "jinja2.exceptions.UndefinedError: 'ds' is undefined" . cloud-init query -a -f {{ds.meta_data.local_ipv4}} return the value correct. calling DataSourceVMware.py returns a local-ipv4 with the correct ip. i am kinda lost at this point. anyone with some pointers ?
[22:20] <xtalkme> ds exists in /run/cloud-init/instance-data.json. somehow fqdn and hostname resolve fine within the jinja template