deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: EC2: Fixed uninitialized constant in valid_credentials? method
Date Tue, 07 Feb 2012 16:25:58 GMT
Updated Branches:
  refs/heads/master c212ad545 -> 28120de64


EC2: Fixed uninitialized constant in valid_credentials? method


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

Branch: refs/heads/master
Commit: 28120de64d98ee32665b38ccd88f98309a005997
Parents: c212ad5
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Tue Feb 7 17:27:00 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue Feb 7 17:27:00 2012 +0100

----------------------------------------------------------------------
 server/lib/deltacloud/drivers/ec2/ec2_driver.rb |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/28120de6/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index fa733f0..44db93a 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -714,11 +714,11 @@ module Deltacloud
         def valid_credentials?(credentials)
           begin
             realms(credentials) && true
-          rescue Aws::AwsError::AuthFailure
-            retval = false
           rescue => e
-            safely do
-              raise e
+            if e.class.name =~ /AuthFailure/
+              retval = false
+            else
+              safely { raise e }
             end
           end
         end


Mime
View raw message