1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

Update kvm_net

Fix issue with `value` which isn't available yet and yields `UnboundLocalError`
This commit is contained in:
Opbod 2025-06-20 09:17:41 +02:00 committed by GitHub
parent 932d923250
commit d7080d1490
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,7 @@ def find_vm_names(pids):
for index, token in enumerate(name_arg_value.split(",")):
if (index == 0) and ("=" not in token):
# the first item may the plain name
name = value
name = token
elif "=" in token:
key, value = token.split("=", 1)
if key == "guest":