diff --git a/netbox_agent/hypervisor.py b/netbox_agent/hypervisor.py index 1e8c60e..5c57db4 100644 --- a/netbox_agent/hypervisor.py +++ b/netbox_agent/hypervisor.py @@ -1,4 +1,3 @@ -import logging import shlex import subprocess @@ -46,7 +45,7 @@ def create_netbox_virtual_guest(self, name): def get_virtual_guests(self): output = subprocess.check_output(shlex.split(config.virtual.list_guests_cmd)) - return output.decode("utf-8") + return output.decode("utf-8").splite() def create_or_update_device_virtual_machines(self): nb_guests = self.get_netbox_virtual_guests()