diff --git a/virttest/qemu_storage.py b/virttest/qemu_storage.py index b86a0a9841..a6897a8dd2 100755 --- a/virttest/qemu_storage.py +++ b/virttest/qemu_storage.py @@ -739,8 +739,7 @@ def create(self, params, ignore_errors=False): self.root_dir) else: cmd_dict["backing_file"] = self.base_image_filename - if self.base_format: - cmd_dict["backing_format"] = self.base_format + cmd_dict["backing_format"] = self.base_format # secret objects of the backing images secret_objects = self._backing_access_secret_objects @@ -975,7 +974,7 @@ def rebase(self, params, cache_mode=None, source_cache_mode=None): base_image.tag, base_image.params, base_image.root_dir) else: cmd_dict["backing_file"] = base_image.image_filename - cmd_dict["backing_format"] = base_image.image_format + cmd_dict["backing_format"] = base_image.image_format else: raise exceptions.TestError("Can not find the image parameters need" " for rebase.")