mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-24 02:03:52 +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
|
def self.generate_uuid
|
||||||
"ec2-" + UUIDTools::UUID.random_create.to_s
|
"ec2-" + UUIDTools::UUID.random_create.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def ebs_volume?
|
||||||
|
self["TEMPLATE/EBS_VOLUME"] == "YES"
|
||||||
|
end
|
||||||
|
|
||||||
|
def ec2_ami?
|
||||||
|
self["TEMPLATE/EC2_AMI"] == "YES"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user