mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #1224: The name of the snapshot is up to the driver
This commit is contained in:
parent
bf7aab9a16
commit
44658d5abf
@ -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],
|
||||
|
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user