deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dko...@apache.org
Subject [1/2] git commit: cimi: fix typo in previous commit: vol.name instead of volume.name
Date Mon, 08 Apr 2013 12:05:24 GMT
Updated Branches:
  refs/heads/master 678f9e2d2 -> 6e8de4bc6


cimi: fix typo in previous commit: vol.name instead of volume.name


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

Branch: refs/heads/master
Commit: 5822d2a21d2a266f7b98cad734ec654a202df7aa
Parents: 678f9e2
Author: Dies Koper <diesk@fast.au.fujitsu.com>
Authored: Mon Apr 8 22:01:07 2013 +1000
Committer: Dies Koper <diesk@fast.au.fujitsu.com>
Committed: Mon Apr 8 22:04:39 2013 +1000

----------------------------------------------------------------------
 server/lib/cimi/service/machine_volume.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/5822d2a2/server/lib/cimi/service/machine_volume.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/service/machine_volume.rb b/server/lib/cimi/service/machine_volume.rb
index 35397df..055dd8a 100644
--- a/server/lib/cimi/service/machine_volume.rb
+++ b/server/lib/cimi/service/machine_volume.rb
@@ -22,7 +22,7 @@ class CIMI::Service::MachineVolume < CIMI::Service::Base
         id = context.machine_url(instance_id)+"/volumes/#{vol.id}"
         attached <<  self.new(context, :values => {
           :id => id,
-          :name => volume.name || vol.id,
+          :name => vol.name || vol.id,
           :description => "MachineVolume #{vol.id} for Machine #{instance_id}",
           :created => vol.created.nil? ? nil : Time.parse(vol.created).xmlschema,
           :initial_location => vol.device,
@@ -37,7 +37,7 @@ class CIMI::Service::MachineVolume < CIMI::Service::Base
       raise CIMI::Model::NotFound unless vol.instance_id == instance_id
       self.new(context, :values => {
         :id => id,
-        :name => volume.name || vol.id,
+        :name => vol.name || vol.id,
         :description => "MachineVolume #{vol.id} for Machine #{instance_id}",
         :created => vol.created.nil? ? nil : Time.parse(vol.created).xmlschema,
         :initial_location => vol.device,


Mime
View raw message