From 90c1090e63c3c259053d1cb2a3a36c1229587cd0 Mon Sep 17 00:00:00 2001 From: Matthew Hicks Date: Thu, 19 Jun 2008 17:44:57 -0400 Subject: Adding an option for no graphics support --- func/minion/modules/virt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'func') diff --git a/func/minion/modules/virt.py b/func/minion/modules/virt.py index c4b718a..ba5759e 100644 --- a/func/minion/modules/virt.py +++ b/func/minion/modules/virt.py @@ -202,7 +202,7 @@ class Virt(func_module.FuncModule): return memory - def install(self, server_name, target_name, system=False, virt_name=None, virt_path=None): + def install(self, server_name, target_name, system=False, virt_name=None, virt_path=None, graphics=False): """ Install a new virt system by way of a named cobbler profile. @@ -236,6 +236,9 @@ class Virt(func_module.FuncModule): if virt_path: koan_args.append("--virt-path=%s" % virt_path) + if not graphics: + koan_args.append("--nogfx") + rc = sub_process.call(koan_args,shell=False,close_fds=True) if rc == 0: return 0 -- cgit