deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH] CIMI - Fix hwp.name bug (.name vs .id) in machine_configs
Date Tue, 13 Nov 2012 21:10:09 GMT
On 11/13/2012 06:49 PM, marios@redhat.com wrote:

ACK. Nice catch!

   -- Michal

> From: marios <marios@redhat.com>
>
>
> Signed-off-by: marios <marios@redhat.com>
> ---
>   server/lib/cimi/models/machine_configuration.rb | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/server/lib/cimi/models/machine_configuration.rb b/server/lib/cimi/models/machine_configuration.rb
> index d53ccaf..5f77bf7 100644
> --- a/server/lib/cimi/models/machine_configuration.rb
> +++ b/server/lib/cimi/models/machine_configuration.rb
> @@ -56,7 +56,7 @@ class CIMI::Model::MachineConfiguration < CIMI::Model::Base
>         :created => Time.now.xmlschema,  # FIXME: DC hardware_profile has no mention
about created_at
>         :memory => (memory if memory),
>         :disks => (  [ { :capacity => storage, :format => (profile.storage.respond_to?(:format)
? profile.storage.format : "unknown")  } ] if storage ), #no format attr for hwp - may be
added if providers support...,
> -      :id => context.machine_configuration_url(profile.name)
> +      :id => context.machine_configuration_url(profile.id)
>       }
>       self.new(machine_hash)
>     end
>


-- 

Michal Fojtik <mfojtik@redhat.com>
Deltacloud API, CloudForms

Mime
View raw message