Projet

Général

Profil

Révision 3267bbd0

ID3267bbd0ef6ce14e44a613e4de08c5b901e0d1cf
Parent 67cc769c
Enfant a9059703

Ajouté par Lars Kruse il y a plus de 7 ans

kvm_net: switch to python3

Voir les différences:

plugins/libvirt/kvm_net
1
#!/usr/bin/python
2
# -*- coding: utf-8 -*-
1
#!/usr/bin/python3
3 2
# vim: set fileencoding=utf-8
4 3
#
5 4
# Munin plugin to show the network I/O per vm
......
112 111
    @return a list of pids from running kvm
113 112
    """
114 113
    pid = Popen("pidof qemu-kvm qemu-system-x86_64 kvm", shell=True, stdout=PIPE)
115
    return pid.communicate()[0].split()
114
    return pid.communicate()[0].decode().split()
116 115

  
117 116

  
118 117
if __name__ == "__main__":

Formats disponibles : Unified diff