Feature #1224: The name of the snapshot is up to the driver

This commit is contained in:
Jaime Melis committed 2013-02-21 15:05:20 +01:00
1 parent bf7aab9a16
commit 44658d5abf
2 files changed
+4 -3

No files matched your search

+1 -2
View File
@@ -620,9 +620,8 @@ class ExecDriver < VirtualMachineDriver
snap_id_xpath = "VM/TEMPLATE/SNAPSHOT[ACTIVE='YES']/SNAPSHOT_ID"
snap_id = xml_data.elements[snap_id_xpath].text.to_i
snapshot_name = "onesnap-#{snap_id}"
do_action("#{deploy_id} #{snapshot_name}",
do_action("#{deploy_id} #{snap_id}",
id,
host,
ACTION[:snapshot_create],
+3 -1
View File
@@ -20,7 +20,9 @@ source $(dirname $0)/kvmrc
source $(dirname $0)/../../scripts_common.sh
DOMAIN="$1"
NAME="$2"
SNAP_ID="$2"
NAME="snapshot-${SNAP_ID}"
exec_and_log "virsh --connect $LIBVIRT_URI snapshot-create-as $DOMAIN $NAME" \
"Could not create snapshot $NAME for domain $DOMAIN."