log binaries versions

Signed-off-by: Liza <e.chichindaeva@yadro.com>
Elizaveta Chichindaeva 2024-03-04 17:01:24 +03:00
parent 09a7f66d1e
commit 649e512c2d
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ def get_local_binaries_versions(shell: Shell) -> dict[str, str]:
out = shell.exec("aws --version").stdout
out_lines = out.split("\n")
versions["AWS"] = out_lines[0] if out_lines else "Unknown"
logger.info(f"Local binaries version: {out_lines[0]}")
return versions
@ -95,6 +96,7 @@ def get_remote_binaries_versions(hosting: Hosting) -> dict[str, str]:
versions[name] = {"version": version, "check": binary["check"]}
previous_host = host
logger.info("Remote binaries versions:" + ", ".join(f"{key}: {value}" for key, value in versions.items()))
if exception:
for i in exception:
for host in versions_by_host.keys():