From f10d32987be28057fad9addfe0d386cf4a750c5f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 20 Aug 2024 10:37:58 -0400 Subject: [PATCH] Fix up comments --- daemon-common/vm.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/daemon-common/vm.py b/daemon-common/vm.py index bb20e35e..bf1310e0 100644 --- a/daemon-common/vm.py +++ b/daemon-common/vm.py @@ -1527,7 +1527,7 @@ def export_vm_snapshot( write_export_json(result=False, result_message=f"ERROR: {error_message}") return False, f"ERROR: {error_message}" - # Validate that the given snapshot exists + # Validate that the given snapshot exists (and incremental parent exists if applicable) if not zkhandler.exists( ("domain.snapshots", dom_uuid, "domain_snapshot.name", snapshot_name) ): @@ -1594,8 +1594,6 @@ def export_vm_snapshot( if ret: snapshot_volumes += snapshots - # 4b. Validate that, if an incremental_parent is given, it is valid - # The incremental parent is just a datestring if incremental_parent is not None: export_fileext = "rbddiff" else: