Blob Blame History Raw
From 3512c68f2a8278726094b3fac35bdf169911e345 Mon Sep 17 00:00:00 2001
From: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Tue, 4 Feb 2014 17:04:00 +0100
Subject: [PATCH 2/2] cli: inhibit --prompt

Drop remaining calls to "cli.set_prompt" and force "cli.doprompt" to
be False.

RHEL-only

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
---
 virt-clone      | 1 -
 virt-install    | 1 -
 virtinst/cli.py | 2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/virt-clone b/virt-clone
index 2b14570..959f033 100755
--- a/virt-clone
+++ b/virt-clone
@@ -215,7 +215,6 @@ def main(conn=None):
     if parseargs:
         fail(_("Unknown argument '%s'") % parseargs[0])
 
-    cli.set_prompt(options.prompt)
     cli.set_force(options.force)
 
     if conn is None:
diff --git a/virt-install b/virt-install
index 71862e8..b1335bd 100755
--- a/virt-install
+++ b/virt-install
@@ -1029,7 +1029,6 @@ def main(conn=None):
         return 0
 
     cli.set_force(options.force)
-    cli.set_prompt(options.prompt)
 
     if conn is None:
         conn = cli.getConnection(options.connect)
diff --git a/virtinst/cli.py b/virtinst/cli.py
index 6952ba8..8b4d57a 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -53,7 +53,7 @@ DEFAULT_POOL_NAME = "default"
 MIN_RAM = 64
 force = False
 quiet = False
-doprompt = True
+doprompt = False
 
 
 ####################
-- 
1.8.5.3