From e0555f4a7aa2ac017ba56446aba1ae992e245c10 Mon Sep 17 00:00:00 2001 From: ma Date: Wed, 23 Oct 2024 11:43:21 +0200 Subject: [PATCH] ceph --- libqmpbackup/vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libqmpbackup/vm.py b/libqmpbackup/vm.py index dc42e89..0380092 100644 --- a/libqmpbackup/vm.py +++ b/libqmpbackup/vm.py @@ -87,10 +87,10 @@ def get_block_devices(blockinfo, argv, excluded_disks, included_disks, uuid): try: encoded_name = json.loads(filename[5:]) try: - driver = encoded_name["file"]["image"]["driver"] + driver = encoded_name["file"][0]["image"]["driver"] if driver == "rbd": log.info("Ceph device found, using image name") - filename = encoded_name["file"]["image"] + filename = encoded_name["file"][0]["image"] except KeyError: pass else: