diff options
author | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-06-19 17:44:57 -0400 |
---|---|---|
committer | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-07-15 17:35:57 -0400 |
commit | 90c1090e63c3c259053d1cb2a3a36c1229587cd0 (patch) | |
tree | 386516471a8ae74b830df5dcda85ddd96ffd8d83 /func | |
parent | 2d7ca1499ca3a436d3d5b89408ce23eaa82c9cc1 (diff) | |
download | third_party-func-90c1090e63c3c259053d1cb2a3a36c1229587cd0.tar.gz third_party-func-90c1090e63c3c259053d1cb2a3a36c1229587cd0.tar.xz third_party-func-90c1090e63c3c259053d1cb2a3a36c1229587cd0.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 |