From 632339b030afb314c27889c1bff53dcfaf796845 Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Fri, 27 Apr 2018 15:55:01 +0200 Subject: [PATCH] Rename the vm class to machine This reflects naming scheme better Signed-off-by: Jonatan Schlag --- test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 0ec69b5..47c82c4 100755 --- a/test.py +++ b/test.py @@ -54,7 +54,7 @@ class libvirt_con(): return self.connection -class vm(): +class machine(): def __init__(self, vm_xml_file, snapshot_xml_file, image, root_uid, username, password): self.log = log(4) self.con = libvirt_con("qemu:///system") @@ -621,7 +621,7 @@ class virtual_environ(): machines = {} for _machine in self.machines: self.log.debug(_machine) - machines.setdefault(_machine, vm( + machines.setdefault(_machine, machine( os.path.normpath(self.path + "/" + self.config[_machine]["xml_file"]), os.path.normpath(self.path + "/" + self.config[_machine]["snapshot_xml_file"]), self.config[_machine]["image"], -- 2.39.2