diff --git a/libqmpbackup/vm.py b/libqmpbackup/vm.py index 1e7c2fb..3e44827 100644 --- a/libqmpbackup/vm.py +++ b/libqmpbackup/vm.py @@ -96,6 +96,8 @@ def get_block_devices(blockinfo, argv, excluded_disks, included_disks, uuid): log.info("Ceph device found, using image name") filename = encoded_name["file"]["image"] log.debug("RBD image name: [%s]", filename) + else: + raise KeyError except KeyError: log.debug("Non RBD Device detected, use filename setting.") try: