I think there's a bug when we process a dict where the key is an integer. I added a JSON object to a device in NetBox and want to load and append this JSON to a Host object. The key is an AS number, e.g. 1234. Inside of the NetBox dict, this key is surrounded by quotes. However, the Icinga2Parser detects this as integer and doesn't add quotes around it, which will lead to an invalid config.
Hi all
I think there's a bug when we process a dict where the key is an integer. I added a JSON object to a device in NetBox and want to load and append this JSON to a Host object. The key is an AS number, e.g.
1234
. Inside of the NetBox dict, this key is surrounded by quotes. However, the Icinga2Parser detects this as integer and doesn't add quotes around it, which will lead to an invalid config.actual rendered example_host.conf
desired outcome with quotes around the AS number