mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
feature #2259: Delete EBS_VOLUME attar when creating a new snapshot
This commit is contained in:
parent
33648033ac
commit
83c29ef0e7
@ -241,7 +241,7 @@ module EBS
|
||||
#
|
||||
# @param [Hash] params
|
||||
# @option params [String] VolumeId The ID of the Amazon EBS volume.
|
||||
# @option params [Description] A description for the snapshot.
|
||||
# @option params [String] Description A description for the snapshot.
|
||||
def create_snapshot(params)
|
||||
image_id = params['VolumeId']
|
||||
image_id = image_id.split('-')[1]
|
||||
@ -296,6 +296,9 @@ module EBS
|
||||
return rc
|
||||
end
|
||||
|
||||
snapshot.delete_element("TEMPLATE/EBS_VOLUME")
|
||||
snapshot.update
|
||||
|
||||
erb_version = params['Version']
|
||||
|
||||
response = ERB.new(File.read(@config[:views]+"/create_snapshot.erb"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user