summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-07-14 11:03:47 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-07-14 11:03:47 -0400
commitf7744eef540cd0c741c471f3f54e98a1ba3d1473 (patch)
treec3325dabcf9f5df433c533bf99513bb706d1f3f2 /func
parent95ba97eec620e15f4083827694218c855fe29584 (diff)
parent09841e3c252e1a5c13b2b3d077ae54d751b006b1 (diff)
downloadfunc-f7744eef540cd0c741c471f3f54e98a1ba3d1473.tar.gz
func-f7744eef540cd0c741c471f3f54e98a1ba3d1473.tar.xz
func-f7744eef540cd0c741c471f3f54e98a1ba3d1473.zip
Merge branch 'mhicks_submit'
Diffstat (limited to 'func')
-rw-r--r--func/minion/modules/virt.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/func/minion/modules/virt.py b/func/minion/modules/virt.py
index 40ae274..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,7 +236,10 @@ class Virt(func_module.FuncModule):
if virt_path:
koan_args.append("--virt-path=%s" % virt_path)
- rc = sub_process.call(koan_args,shell=False)
+ if not graphics:
+ koan_args.append("--nogfx")
+
+ rc = sub_process.call(koan_args,shell=False,close_fds=True)
if rc == 0:
return 0
else: