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:
parent
e7f12ea474
commit
4dad58d453
@ -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
|
||||
|
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user