1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/inventory
patchback[bot] ca93145e76
Parse lxc key from api data for lxc containers (#4555) (#4574)
* 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>
(cherry picked from commit 346bfba9c5)

Co-authored-by: Philippe Pépos-Petitclerc <ppepos@users.noreply.github.com>
2022-04-25 22:32:46 +02:00
..
cobbler.py Fix sanity issues. (#4346) (#4357) 2022-03-14 21:30:29 +01:00
gitlab_runners.py Fix sanity issues. (#4346) (#4357) 2022-03-14 21:30:29 +01:00
icinga2.py Added new feature for ansible_user and ansible_port in Icinga2 inventory source (#4088) (#4130) 2022-01-31 20:22:59 +01:00
linode.py Fix sanity issues. (#4346) (#4357) 2022-03-14 21:30:29 +01:00
lxd.py plugins/inventory/lxd.py: fix listing of containers without os / release (#4351) (#4372) 2022-03-16 18:19:44 +01:00
nmap.py nmap inventory plugin: Add sudo nmap (#4506) (#4544) 2022-04-21 10:10:56 +02:00
online.py Fix sanity issues. (#4346) (#4357) 2022-03-14 21:30:29 +01:00
opennebula.py Implement contructable support for opennebula inventory plugin: keyed… (#4524) (#4549) 2022-04-21 14:03:37 +02:00
proxmox.py Parse lxc key from api data for lxc containers (#4555) (#4574) 2022-04-25 22:32:46 +02:00
scaleway.py Fix sanity issues. (#4346) (#4357) 2022-03-14 21:30:29 +01:00
stackpath_compute.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
virtualbox.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
xen_orchestra.py Update example (#4041) (#4047) 2022-01-16 20:55:03 +01:00