1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

add proxmox comment

This commit is contained in:
Bianco Veigel 2020-08-15 10:06:27 +02:00 committed by Lars Kruse
parent 00f8fce4f8
commit 225a9156df
4 changed files with 4 additions and 0 deletions

View file

@ -52,6 +52,7 @@ def clean_vm_name(vm_name):
if suffix:
vm_name = re.sub(suffix,'',vm_name)
# proxmox uses kvm with -name parameter
parts = vm_name.split('\x00')
if (parts[0].endswith('kvm')):
try:

View file

@ -50,6 +50,7 @@ def clean_vm_name(vm_name):
suffix = os.getenv('vmsuffix')
if suffix:
vm_name = re.sub(suffix,'',vm_name)
# proxmox uses kvm with -name parameter
parts = vm_name.split('\x00')
if (parts[0].endswith('kvm')):
try:

View file

@ -49,6 +49,7 @@ def clean_vm_name(vm_name):
if suffix:
vm_name = re.sub(suffix,'',vm_name)
# proxmox uses kvm with -name parameter
parts = vm_name.split('\x00')
if (parts[0].endswith('kvm')):
try:

View file

@ -99,6 +99,7 @@ def clean_vm_name(vm_name):
suffix = os.getenv("vmsuffix")
if suffix:
vm_name = re.sub(suffix, "", vm_name)
# proxmox uses kvm with -name parameter
parts = vm_name.split('\x00')
if (parts[0].endswith('kvm')):
try: