From: Jonatan Schlag Date: Fri, 27 Apr 2018 13:55:01 +0000 (+0200) Subject: Rename the vm class to machine X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=632339b030afb314c27889c1bff53dcfaf796845;p=people%2Fms%2Fnitsi.git Rename the vm class to machine This reflects naming scheme better Signed-off-by: Jonatan Schlag --- 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"],