summaryrefslogtreecommitdiff
path: root/virt-install
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2019-07-25 14:09:53 +0200
committerCole Robinson <crobinso@redhat.com>2019-07-25 19:13:13 -0400
commit414ffa5ef82548d502a4de98d40228a68bdb29c1 (patch)
tree11c5fbe09fd3bcbf291f62f60a0001f67dfb0998 /virt-install
parent9afe51a0f827f3b3568da040f858c08771f9383f (diff)
downloadvirt-manager-414ffa5ef82548d502a4de98d40228a68bdb29c1.tar.gz
virt-install: Use minutes instead of seconds on get_time_string()
get_time_string() currently uses self._wait_secs, while it should use self._wait_mins, resulting on confusing messages when using `--wait` option, as shown below: fidencio@laerte ~/src/upstream/virt-manager $ ./virt-install --install fedora30 --unattended --wait 20 ... Waiting 1200 minutes for installation to complete. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
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 af6c75bf..8efa4960 100755
--- a/virt-install
+++ b/virt-install
@@ -610,7 +610,7 @@ class WaitHandler:
self._start_time = time.time()
def get_time_string(self):
- timestr = _(" %d minutes") % self._wait_secs
+ timestr = _(" %d minutes") % self._wait_mins
if self._wait_forever:
timestr = ""
ret = _("Waiting%(time_string)s for installation to complete.") % {