diff options
author | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-06-19 17:44:57 -0400 |
---|---|---|
committer | Matt Hicks <mhicks@localhost.localdomain> | 2008-07-07 16:54:50 -0400 |
commit | 09841e3c252e1a5c13b2b3d077ae54d751b006b1 (patch) | |
tree | 93b8ccc5b5a51178d8ff10da65a97066f99d7419 /func | |
parent | c3ff129b248c4aa2f641f1d032e5934196f55b62 (diff) | |
download | func-09841e3c252e1a5c13b2b3d077ae54d751b006b1.tar.gz func-09841e3c252e1a5c13b2b3d077ae54d751b006b1.tar.xz func-09841e3c252e1a5c13b2b3d077ae54d751b006b1.zip |
Adding an option for no graphics support
Diffstat (limited to 'func')
-rw-r--r-- | func/minion/modules/virt.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |