Hello,
from the xml module I get a list of dict of interfaces:
TASK [Show result] *****************************************************************************************************
ok: [opnsense] => {
"iface_current.matches": [
{
"lo0": null
},
{
"lan": null
},
{
"wan": null
},
{
"opt1": null
},
{
"opt2": null
},
{
"opt3": null
}
]
}
Any idea how to extract the keys as a list? Best would be without a loop, only with map etc.
The expected result should be:
"iface_current.matches": ["lo0", "lan", "wan", "opt1", "opt2", "opt3"]
Thanks a lot!