1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-08 21:17:43 +03:00

feature #2259: Add ebs and ami checks in EC2Image

This commit is contained in:
Daniel Molina 2013-08-14 13:58:38 +02:00
parent 83c29ef0e7
commit c4fb4c6b72

View File

@ -93,4 +93,12 @@ class ImageEC2 < Image
def self.generate_uuid
"ec2-" + UUIDTools::UUID.random_create.to_s
end
def ebs_volume?
self["TEMPLATE/EBS_VOLUME"] == "YES"
end
def ec2_ami?
self["TEMPLATE/EC2_AMI"] == "YES"
end
end