]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Refresh capabilities if they have never been initalized
authorCole Robinson <crobinso@redhat.com>
Mon, 9 Dec 2019 16:13:04 +0000 (11:13 -0500)
committerCole Robinson <crobinso@redhat.com>
Tue, 10 Dec 2019 15:12:48 +0000 (10:12 -0500)
commit22e7997d0cb4dd52c023ea4a40873b8274281e25
tree64800b755b95e59ff60fc0b19e826441a39f6574
parentcd9492a98ad1953f3a5f61d13d693f0de211dbb5
lxc: Refresh capabilities if they have never been initalized

Adjust virLXCDriverGetCapabilities to fill in driver->caps if it is
empty, regardless of the passed 'refresh' value. This matches the
pattern used in virQEMUDriverGetCapabilities

This fixes LXC XML startup parsing for me

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/lxc/lxc_conf.c