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:
parent
72d536cec3
commit
c5f6b790a0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user