From: Matthias Runge Date: Tue, 7 Jun 2022 09:16:34 +0000 (+0200) Subject: Fix the virt plugin for Openstack wallaby and later use (#4011) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4bdc7a8486683533185db34f97fd0f219fdc36b;p=thirdparty%2Fcollectd.git Fix the virt plugin for Openstack wallaby and later use (#4011) * Fix formatting for the send queue option * Later OpenStack versions use Nova version 1.1 In later OpenStack versions, the namespace for Nova changed, reflecting in a change for the XML description for the virtual machine. --- diff --git a/src/virt.c b/src/virt.c index 3c5fd8ec0..4ba0d07cd 100644 --- a/src/virt.c +++ b/src/virt.c @@ -736,7 +736,7 @@ static void set_field_from_metadata(value_list_t *vl, virDomainPtr dom, const char *namespace = NULL; if (hm_ns == NULL) { - namespace = "http://openstack.org/xmlns/libvirt/nova/1.0"; + namespace = "http://openstack.org/xmlns/libvirt/nova/1.1"; } // namespace =hm_ns; else { namespace = hm_ns;