Skip to content

Commit

Permalink
add debug entries
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Oct 29, 2024
1 parent c8d4049 commit 0c2a887
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libqmpbackup/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ def get_block_devices(blockinfo, argv, excluded_disks, included_disks, uuid):
try:
encoded_name = json.loads(filename[5:])
try:
log.debug("Check if device is an RBD backed device.")
driver = encoded_name["file"]["driver"]
if driver == "rbd":
log.info("Ceph device found, using image name")
filename = encoded_name["file"]["image"]
except KeyError:
log.debug("Non RBD Device detected, use filename setting.")
try:
filename = encoded_name["file"]["next"]["filename"]
except KeyError:
Expand Down

0 comments on commit 0c2a887

Please sign in to comment.