summaryrefslogtreecommitdiff
path: root/virt-install
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2019-06-16 22:46:39 -0400
committerCole Robinson <crobinso@redhat.com>2019-06-17 00:12:32 -0400
commit230545bdb3ef7ece8656ccddd8c14075d575c7c6 (patch)
tree26e3b6167e9091edb93584e1dde779c7f5be14f1 /virt-install
parent49112dbb708b0ada1d868fe4b14879137d01250b (diff)
downloadvirt-manager-230545bdb3ef7ece8656ccddd8c14075d575c7c6.tar.gz
virt-install: Make bare '--wait' mean 'wait indefinitely'
Diffstat (limited to 'virt-install')
-rwxr-xr-xvirt-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt-install b/virt-install
index b22304b6..6084a459 100755
--- a/virt-install
+++ b/virt-install
@@ -900,7 +900,7 @@ def parse_args():
misc.add_argument("--destroy-on-exit", action="store_true", default=False,
help=_("Force power off the domain when the console "
"viewer is closed."))
- misc.add_argument("--wait", type=int,
+ misc.add_argument("--wait", type=int, const=-1, nargs="?",
help=_("Minutes to wait for install to complete."))
cli.add_misc_options(misc, prompt=True, printxml=True, printstep=True,