mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Update kvm_net
Fix issue with `value` which isn't available yet and yields `UnboundLocalError`
This commit is contained in:
parent
932d923250
commit
d7080d1490
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ def find_vm_names(pids):
|
||||||
for index, token in enumerate(name_arg_value.split(",")):
|
for index, token in enumerate(name_arg_value.split(",")):
|
||||||
if (index == 0) and ("=" not in token):
|
if (index == 0) and ("=" not in token):
|
||||||
# the first item may the plain name
|
# the first item may the plain name
|
||||||
name = value
|
name = token
|
||||||
elif "=" in token:
|
elif "=" in token:
|
||||||
key, value = token.split("=", 1)
|
key, value = token.split("=", 1)
|
||||||
if key == "guest":
|
if key == "guest":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue