[Ovirt-devel] Re: [PATCH] fix storages crazyness

Michel Loiseleur mloiseleur at linagora.com
Mon Nov 16 14:39:37 UTC 2009


Hi,

Just to point you this patch, which is quite important and not ACK at
the moment.

Thanks,

Loiseleur Michel a écrit :
> Signed-off-by: Loiseleur Michel <mloiseleur at linagora.com>
> ---
>  app/models/vm.rb |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/app/models/vm.rb b/app/models/vm.rb
> index 88e0aef..0be3f89 100644
> --- a/app/models/vm.rb
> +++ b/app/models/vm.rb
> @@ -27,7 +27,7 @@ class Vm < ActiveRecord::Base
>        find(:all, :conditions=>{:state=>Task::STATE_QUEUED})
>      end
>    end
> -  has_and_belongs_to_many :storage_volumes
> +  has_and_belongs_to_many :storage_volumes, :uniq => true
>  
>    has_many :nics, :dependent => :destroy
>  
>   


-- 
Loiseleur Michel
Responsable de l'OSSA
Linagora / 27, rue de Berri / 75008 PARIS
Tel/Fax : 01 58 18 68 28 / 01 58 18 68 29
http://job.linagora.com/ | http://www.tosca-project.net
"Ce n'est pas le logiciel qui est libre, c'est vous"




More information about the ovirt-devel mailing list