deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [7/7] git commit: Minor fix in google driver valid_credentials? was not working
Date Mon, 04 Jun 2012 11:24:58 GMT
Minor fix in google driver valid_credentials? was not working


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

Branch: refs/heads/master
Commit: b8120dc3b3bf8c5ede7c649bf244f8faa0bc6b6a
Parents: beb224e
Author: marios <marios@redhat.com>
Authored: Fri Jun 1 13:16:30 2012 +0300
Committer: marios <marios@redhat.com>
Committed: Mon Jun 4 14:24:11 2012 +0300

----------------------------------------------------------------------
 .../lib/deltacloud/drivers/google/google_driver.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/b8120dc3/server/lib/deltacloud/drivers/google/google_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/google/google_driver.rb b/server/lib/deltacloud/drivers/google/google_driver.rb
index 8bc6f25..6934a85 100644
--- a/server/lib/deltacloud/drivers/google/google_driver.rb
+++ b/server/lib/deltacloud/drivers/google/google_driver.rb
@@ -194,8 +194,8 @@ class GoogleDriver < Deltacloud::BaseDriver
 
   def valid_credentials?(credentials)
     begin
-      new_client(credentials)
-    rescue
+      new_client(credentials).get_service && true
+    rescue => e
       return false
     end
     return true


Mime
View raw message