Skip to content

Commit

Permalink
remove unused logging and return a list of VM names
Browse files Browse the repository at this point in the history
  • Loading branch information
CllaudiaB committed Dec 23, 2024
1 parent 3cbebaa commit 36a735e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions netbox_agent/hypervisor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
import shlex
import subprocess

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 36a735e

Please sign in to comment.