From c293e35216fe4f4bc0008cd3b2544a27dbf62aef Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Fri, 1 Apr 2022 22:51:33 +0200 Subject: [PATCH] kvm_io: fix graph failure for specific VM names Thanks, Michael Grote! Closes: #1291 --- plugins/libvirt/kvm_io | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libvirt/kvm_io b/plugins/libvirt/kvm_io index 50b0de7a..1b84df15 100755 --- a/plugins/libvirt/kvm_io +++ b/plugins/libvirt/kvm_io @@ -79,7 +79,7 @@ def clean_vm_name(vm_name): parts = vm_name.split('\x00') if (parts[0].endswith('kvm')): try: - return parts[parts.index('-name')+1] + vm_name = parts[parts.index('-name') + 1] except ValueError: pass return re.sub(r"[^a-zA-Z0-9_]", "_", vm_name)