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:
parent
83c29ef0e7
commit
c4fb4c6b72
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user