]> git.ipfire.org Git - nitsi.git/commitdiff
Rename the vm class to machine
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Fri, 27 Apr 2018 13:55:01 +0000 (15:55 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Fri, 27 Apr 2018 13:55:01 +0000 (15:55 +0200)
This reflects naming scheme better

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
test.py

diff --git a/test.py b/test.py
index 0ec69b5128a1dd7e0052f4ace688cb6928c7478d..47c82c44a9cd0c32108b86b1ec3e619a93133272 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -54,7 +54,7 @@ class libvirt_con():
         return self.connection
 
 
         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")
     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 = {}
         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"],
                 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"],