1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-27 10:50:10 +03:00

feature #2259: Use EBS_SNAPSHOT attar

This commit is contained in:
Daniel Molina 2013-08-15 18:45:46 +02:00
parent e7f12ea474
commit 4dad58d453
2 changed files with 3 additions and 1 deletions

View File

@ -100,9 +100,10 @@ class ImageEC2 < Image
def ec2_ami?
self["TEMPLATE/EC2_AMI"] == "YES"
true
end
def ebs_snapshot?
!ebs_volume? && !ec2_ami?
self["TEMPLATE/EBS_SNAPSHOT"] == "YES"
end
end

View File

@ -297,6 +297,7 @@ module EBS
end
snapshot.delete_element("TEMPLATE/EBS_VOLUME")
snapshot.add_element('TEMPLATE', {"EBS_SNAPSHOT" => "YES"})
snapshot.update
erb_version = params['Version']