From 3d0d5e63f6b50487cd0ac84c86ff94c276db240e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 21 May 2024 15:19:00 -0400 Subject: [PATCH] Make default snap name just the datestring --- daemon-common/vm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon-common/vm.py b/daemon-common/vm.py index 55f76608..11090b5b 100644 --- a/daemon-common/vm.py +++ b/daemon-common/vm.py @@ -1257,8 +1257,7 @@ def create_vm_snapshot(zkhandler, domain, snapshot_name=None): if snapshot_name is None: now = datetime.now() - datestring = now.strftime("%Y%m%d%H%M%S") - snapshot_name = f"snapshot_{datestring}" + snapshot_name = now.strftime("%Y%m%d%H%M%S") else: reg = re.compile("^[a-z0-9.-_]+$") if not reg.match(snapshot_name):