From 2d53bc4f1ffd1416f611b44194c87ebbedbf0fc5 Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Thu, 19 Apr 2018 13:14:34 +0200 Subject: [PATCH] Add more stuff to the virtual_environ() class Signed-off-by: Jonatan Schlag --- test.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 36b391b..d9001dc 100755 --- a/test.py +++ b/test.py @@ -556,10 +556,22 @@ class virtual_environ(): self.log.debug(_machine) machines.setdefault(_machine, vm( os.path.normpath(self.path + "/" + self.config[_machine]["xml_file"]), - os.path.normpath(self.path + "/" + self.config[_machine]["snapshot_xml_file"]))) + os.path.normpath(self.path + "/" + self.config[_machine]["snapshot_xml_file"]), + self.config[_machine]["image"], + self.config[_machine]["root_uid"], + self.config[_machine]["username"], + self.config[_machine]["password"])) return machines + @property + def machine_names(self): + return self.machines + + @property + def network_names(self): + return self.networks + if __name__ == "__main__": import argparse -- 2.47.3