Fix up comments

This commit is contained in:
Joshua Boniface 2024-08-20 10:37:58 -04:00
parent faf920ac1d
commit f10d32987b
1 changed files with 1 additions and 3 deletions

View File

@ -1527,7 +1527,7 @@ def export_vm_snapshot(
write_export_json(result=False, result_message=f"ERROR: {error_message}") write_export_json(result=False, result_message=f"ERROR: {error_message}")
return False, 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( if not zkhandler.exists(
("domain.snapshots", dom_uuid, "domain_snapshot.name", snapshot_name) ("domain.snapshots", dom_uuid, "domain_snapshot.name", snapshot_name)
): ):
@ -1594,8 +1594,6 @@ def export_vm_snapshot(
if ret: if ret:
snapshot_volumes += snapshots 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: if incremental_parent is not None:
export_fileext = "rbddiff" export_fileext = "rbddiff"
else: else: