Skip to content

Commit

Permalink
show qemu version human readable
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Jan 26, 2022
1 parent 3a37da4 commit 001380a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qmpbackup
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@ NEWMONTHLYBACKUP = False
# Get all block devices for VM which are format qcow
try:
version = qmp.command("query-version")
log.info("Qemu version: %s", common.json_pp(version))
qemu = version["qemu"]
log.info(
"Qemu version: [%s.%s.%s] [%s]",
qemu["major"],
qemu["micro"],
qemu["minor"],
version["package"],
)
except Exception as e:
log.warning("Unable to get qemu version: %s", e)

Expand Down

0 comments on commit 001380a

Please sign in to comment.