From c5f6b790a0cf74f6bdc1ce95127e04fad63eb0a1 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Thu, 14 Jul 2011 16:09:31 +0200 Subject: [PATCH] Drop dependency of the 'uuid' gem. Replace it with 'uuidtools'. --- src/cloud/ec2/lib/ImageEC2.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cloud/ec2/lib/ImageEC2.rb b/src/cloud/ec2/lib/ImageEC2.rb index e34da8127d..a8749dc7bc 100644 --- a/src/cloud/ec2/lib/ImageEC2.rb +++ b/src/cloud/ec2/lib/ImageEC2.rb @@ -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 \ No newline at end of file +end