On 11/13/2012 06:49 PM, [email protected] wrote:

ACK. Nice catch!

  -- Michal

From: marios <[email protected]>


Signed-off-by: marios <[email protected]>
---
  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 <[email protected]>
Deltacloud API, CloudForms

Reply via email to