mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-18 06:03:58 +03:00
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>
This commit is contained in:
parent
9afe51a0f8
commit
414ffa5ef8
@ -610,7 +610,7 @@ class WaitHandler:
|
|||||||
self._start_time = time.time()
|
self._start_time = time.time()
|
||||||
|
|
||||||
def get_time_string(self):
|
def get_time_string(self):
|
||||||
timestr = _(" %d minutes") % self._wait_secs
|
timestr = _(" %d minutes") % self._wait_mins
|
||||||
if self._wait_forever:
|
if self._wait_forever:
|
||||||
timestr = ""
|
timestr = ""
|
||||||
ret = _("Waiting%(time_string)s for installation to complete.") % {
|
ret = _("Waiting%(time_string)s for installation to complete.") % {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user