deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: CIMI: Replaced 'self.driver' with 'context.driver', since from modular revamp CIMI models does not have access to global driver variable
Date Thu, 12 Jul 2012 10:08:40 GMT
Updated Branches:
  refs/heads/master d7ab9b632 -> 9624d76a1


CIMI: Replaced 'self.driver' with 'context.driver', since from modular revamp CIMI models
does not have access to global driver variable


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

Branch: refs/heads/master
Commit: 9624d76a1754cceb1d76c018f5acce8778636f0d
Parents: d7ab9b6
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Jul 12 12:09:35 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Jul 12 12:09:35 2012 +0200

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


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/9624d76a/server/lib/cimi/models/volume_image.rb
----------------------------------------------------------------------
diff --git a/server/lib/cimi/models/volume_image.rb b/server/lib/cimi/models/volume_image.rb
index 03cc7fd..ae72ea6 100644
--- a/server/lib/cimi/models/volume_image.rb
+++ b/server/lib/cimi/models/volume_image.rb
@@ -25,7 +25,7 @@ class CIMI::Model::VolumeImage < CIMI::Model::Base
   def self.find(id, context)
     storage_snapshots = []
     opts = ( id==:all  ) ? {}  : { :id=>id }
-    storage_snapshots = self.driver.storage_snapshots(context.credentials, opts)
+    storage_snapshots = context.driver.storage_snapshots(context.credentials, opts)
     storage_snapshots.collect!{ |snapshot| from_storage_snapshot(snapshot, context) }
     return storage_snapshots.first unless storage_snapshots.length > 1
     return storage_snapshots


Mime
View raw message