mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
kvm_io: fix graph failure for specific VM names
Thanks, Michael Grote! Closes: #1291
This commit is contained in:
parent
e12c8afdb7
commit
c293e35216
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ def clean_vm_name(vm_name):
|
||||||
parts = vm_name.split('\x00')
|
parts = vm_name.split('\x00')
|
||||||
if (parts[0].endswith('kvm')):
|
if (parts[0].endswith('kvm')):
|
||||||
try:
|
try:
|
||||||
return parts[parts.index('-name')+1]
|
vm_name = parts[parts.index('-name') + 1]
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
return re.sub(r"[^a-zA-Z0-9_]", "_", vm_name)
|
return re.sub(r"[^a-zA-Z0-9_]", "_", vm_name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue