search for: uuidhelper

Displaying 10 results from an estimated 10 matches for "uuidhelper".

2010 Jun 01
1
[PATCH] RHEV: OVF must have the same name as the OS UUID
...b/lib/Sys/VirtV2V/Target/RHEV.pm index 867923b..9dd9013 100644 --- a/lib/Sys/VirtV2V/Target/RHEV.pm +++ b/lib/Sys/VirtV2V/Target/RHEV.pm @@ -562,7 +562,7 @@ sub create_guest # Generate a creation date my $vmcreation = _format_time(gmtime()); - my $osuuid = Sys::VirtV2V::Target::RHEV::UUIDHelper::get_uuid(); + my $vmuuid = Sys::VirtV2V::Target::RHEV::UUIDHelper::get_uuid(); my $ovf = new XML::DOM::Parser->parse(<<EOF); <ovf:Envelope @@ -597,7 +597,7 @@ sub create_guest <VmType>1</VmType> <DefaultDisplayType>0</DefaultDisplayType...
2010 Jun 01
1
[PATCH] RHEV: Pad disk sizes up to a multiple of 1024 bytes
...s to be a multiple of 512 in size. Additionally, SIZE in + # the disk meta file has units of kilobytes. To ensure everything matches up + # exactly, we will pad to to a 1024 byte boundary. + $self->{outsize} = ceil($insize/1024) * 1024; my $imageuuid = Sys::VirtV2V::Target::RHEV::UUIDHelper::get_uuid(); my $voluuid = Sys::VirtV2V::Target::RHEV::UUIDHelper::get_uuid(); @@ -206,7 +210,7 @@ sub _get_size { my $self = shift; - return $self->{size}; + return $self->{outsize}; } sub _get_imageuuid @@ -256,6 +260,7 @@ sub open my $self = shift; my $...
2006 Apr 01
0
Okay, what gives? find_by_id is failing.
...TTP/1.1" 500 7042 http://localhost:3000/question/new?parent_quiz=ff2d7022- be0a-11da-9f01-00400506faf5 -> /question/create Here is the code for question: class Question < ActiveRecord::Base require ''presentations'' require ''question'' include UUIDHelper has_many :answers, :order => :seq belongs_to :presentation, :class_name => "Presentations", :foreign_key => :presentation_id belongs_to :parent, :class_name => "Quiz" acts_as_list :scope => :parent_id, :column => :seq end Here is the code for q...
2006 Mar 28
1
Rails generates query with reserved word for field name
...d all files in my project for the word "position", and the only places it appears are in reference to HTML element positions. Here is the Questions code: class Question < ActiveRecord::Base require ''presentations'' require ''question'' include UUIDHelper has_many :answers, :order => :seq belongs_to :presentation, :class_name => "Presentations", :foreign_key => :presentation_id belongs_to :parent, :class_name => "Quiz" acts_as_list :scope => :parent_id # TODO: auto-increment for seq end create...
2010 Apr 14
1
[PATCH] Change the date format used in RHEV OVF output
...%02d/%02d/%d %02d:%02d:%02d", - $now->mday(), $now->mon() + 1, $now->year() + 1900, - $now->hour(), $now->min(), $now->sec()); + my $vmcreation = _format_time(gmtime()); my $osuuid = Sys::VirtV2V::Target::RHEV::UUIDHelper::get_uuid(); @@ -651,6 +648,14 @@ EOF $nfs->check_exit(); } +sub _format_time +{ + my ($time) = @_; + return sprintf("%04d/%02d/%02d %02d:%02d:%02d", + $time->year() + 1900, $time->mon() + 1, $time->mday(), + $time->hour()...
2006 Apr 20
1
Rails is losing key information
...tations_seq; create generator quizzes_seq; create generator questions_seq; ---------------------------------- Ruby model class: ---------------------------------- class Question < ActiveRecord::Base require ''presentations'' require ''question'' # include UUIDHelper has_many :answers, :order => :seq belongs_to :presentation, :class_name => "Presentations", :foreign_key => :presentation_id belongs_to :tip_presentation, :class_name => "Presentations", :foreign_key => :presentation_id belongs_to :explanation_presentat...
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
Move all target-specific functionality into its own module in preparation for output to RHEV. --- MANIFEST | 1 + lib/Sys/VirtV2V/Connection.pm | 46 ++--- lib/Sys/VirtV2V/Converter.pm | 138 +------------ lib/Sys/VirtV2V/Target/LibVirt.pm | 419 +++++++++++++++++++++++++++++++++++++ lib/Sys/VirtV2V/Transfer/ESX.pm | 91 +++------ po/POTFILES.in
2010 Jun 08
2
[PATCH 1/2] Target: Pass os description to create_guest
This will allow use of raw data from os description in addition to libvirt XML when writing guest output. --- lib/Sys/VirtV2V/Target/LibVirt.pm | 2 +- lib/Sys/VirtV2V/Target/RHEV.pm | 2 +- v2v/virt-v2v.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Sys/VirtV2V/Target/LibVirt.pm b/lib/Sys/VirtV2V/Target/LibVirt.pm index
2006 Mar 15
8
Tags to ruby interface: What I am missing? (repost)
I offer my apologies in advance for the repost. On a list as busy as this, it is sometimes easy to get missed in the shuffle. I am trying to create, display and edit a referenced object''s text field on the same view as my root object. For example: ------------------------- Quiz: <<quiz.name>> Preamble: <<quiz.preamble_presentation.text>> Postamble:
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...Connection/RHEVTarget.pm @@ -1,4 +1,4 @@ -# Sys::VirtV2V::Target::RHEV +# Sys::VirtV2V::Connection::RHEVTarget # Copyright (C) 2010 Red Hat Inc. # # This library is free software; you can redistribute it and/or @@ -18,7 +18,15 @@ use strict; use warnings; -package Sys::VirtV2V::Target::RHEV::UUIDHelper; +package rhev_util; + +use Exporter 'import'; +our @EXPORT = qw(nfs_helper get_uuid); + +sub nfs_helper +{ + return Sys::VirtV2V::Connection::RHEVTarget::NFSHelper->new(@_); +} sub get_uuid { @@ -35,14 +43,13 @@ sub get_uuid return $uuid; } -package Sys::VirtV2V::Target::...