deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 4/7] Minor fix in google driver valid_credentials? was not working
Date Fri, 01 Jun 2012 11:24:03 GMT
From: marios <marios@redhat.com>


Signed-off-by: marios <marios@redhat.com>
---
 .../lib/deltacloud/drivers/google/google_driver.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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
-- 
1.7.6.5


Mime
View raw message