community.general/plugins/inventory
Philippe Pépos-Petitclerc 346bfba9c5
Parse lxc key from api data for lxc containers (#4555)
* Parse lxc key from api data for lxc containers

When configuring containers in the `/etc/pve/lxc/` file, the API
adds a 'lxc' key that caused the plugin to crash as it tried to
split a list on ','.

This commit introduces logic to convert the list of lists in the
returned data to a dict as with the other keys.

```
'lxc': [['lxc.apparmor.profile', 'unconfined'],
	['lxc.cgroup.devices.allow', 'a']]
```

becomes

```
"proxmox_lxc": {
	"apparmor.profile": "unconfined",
	"cap.drop": "",
	"cgroup.devices.allow": "a"
}
```

* Add changelog fragment

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Philippe Pepos Petitclerc <peposp@gmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-04-25 22:21:36 +02:00
..
cobbler.py
gitlab_runners.py
icinga2.py
linode.py
lxd.py
nmap.py nmap inventory plugin: Add sudo nmap (#4506) 2022-04-21 09:54:38 +02:00
online.py
opennebula.py Implement contructable support for opennebula inventory plugin: keyed… (#4524) 2022-04-21 13:16:15 +02:00
proxmox.py Parse lxc key from api data for lxc containers (#4555) 2022-04-25 22:21:36 +02:00
scaleway.py
stackpath_compute.py
virtualbox.py
xen_orchestra.py