You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/11/14 08:30:07 UTC

git commit: CIMI - Fix hwp.name bug (.name vs .id) in machine_configs

Updated Branches:
  refs/heads/master 34b34f221 -> f241998b7


CIMI - Fix hwp.name bug (.name vs .id) in machine_configs


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/f241998b
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/f241998b
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/f241998b

Branch: refs/heads/master
Commit: f241998b733ce40a544828487c71261f67f7a980
Parents: 34b34f2
Author: marios <ma...@redhat.com>
Authored: Tue Nov 13 19:48:29 2012 +0200
Committer: marios <ma...@redhat.com>
Committed: Tue Nov 13 19:48:29 2012 +0200

----------------------------------------------------------------------
 server/lib/cimi/models/machine_configuration.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f241998b/server/lib/cimi/models/machine_configuration.rb
----------------------------------------------------------------------
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