Skip to content

Commit e9395d8

Browse files
committed
vmupdate: print info if progress reporting isn't supported
1 parent 96b9998 commit e9395d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vmupdate/agent/entrypoint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def get_package_manager(os_data, log, log_handler, log_level, no_progress):
6969
log.warning("Failed to load apt with progress bar. Using apt cli.")
7070
# no progress reporting
7171
no_progress = True
72+
print(f"Progress reporting not supported.", flush=True)
7273

7374
if no_progress:
7475
from source.apt.apt_cli import APTCLI as PackageManager
@@ -99,6 +100,7 @@ def get_package_manager(os_data, log, log_handler, log_level, no_progress):
99100
from source.dnf.dnf_cli import DNFCLI as PackageManager
100101
elif os_data["os_family"] == "ArchLinux":
101102
from source.pacman.pacman_cli import PACMANCLI as PackageManager
103+
print(f"Progress reporting not supported.", flush=True)
102104
else:
103105
raise NotImplementedError(
104106
"Only Debian, RedHat and ArchLinux based OS is supported.")

0 commit comments

Comments
 (0)