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

Drop dependency of the 'uuid' gem. Replace it with 'uuidtools'.

This commit is contained in:
Jaime Melis 2011-07-14 16:09:31 +02:00
parent 72d536cec3
commit c5f6b790a0

View File

@ -14,13 +14,13 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'uuid'
require 'uuidtools'
require 'OpenNebula'
include OpenNebula
class ImageEC2 < Image
ONE_IMAGE = %q{
NAME = "ec2-<%= uuid %>"
TYPE = OS
@ -40,9 +40,9 @@ class ImageEC2 < Image
end
def to_one_template()
uuid = UUID.generate
uuid = UUIDTools::UUID.random_create.to_s
one = ERB.new(ONE_IMAGE)
return one.result(binding)
end
end
end