From d194b2ee278d082beb9d5aec7d02a474bbae9f39 Mon Sep 17 00:00:00 2001 From: Andrew Widdersheim Date: Mon, 31 Oct 2016 20:24:37 -0400 Subject: [PATCH] Fix specifying specific graphics type This fixes the following: https://github.com/cobbler/cobbler/issues/1237 --- koan/app.py | 1 - koan/virtinstall.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/koan/app.py b/koan/app.py index 247dcf0..28c866e 100755 --- a/koan/app.py +++ b/koan/app.py @@ -223,7 +223,6 @@ def main(): p.add_option( "-g", "--graphics", - action="store_true", dest="gfx_type", help="specify the graphics type: vnc, sdl, spice, none" ) diff --git a/koan/virtinstall.py b/koan/virtinstall.py index 39dc761..a8dfacd 100644 --- a/koan/virtinstall.py +++ b/koan/virtinstall.py @@ -338,7 +338,7 @@ def build_commandline(uri, if gfx_type is None: cmd += "--nographics " else: - cmd += "--%s " % gfx_type + cmd += "--graphics %s " % gfx_type if is_qemu and virt_type: if not disable_virt_type: