libcloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r911663 - /incubator/libcloud/trunk/libcloud/drivers/ec2.py
Date Fri, 19 Feb 2010 00:58:24 GMT
Author: pquerna
Date: Fri Feb 19 00:58:23 2010
New Revision: 911663

URL: http://svn.apache.org/viewvc?rev=911663&view=rev
Log:
Add another error text that ec2 can send back on invalid creds

Modified:
    incubator/libcloud/trunk/libcloud/drivers/ec2.py

Modified: incubator/libcloud/trunk/libcloud/drivers/ec2.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/ec2.py?rev=911663&r1=911662&r2=911663&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/ec2.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/ec2.py Fri Feb 19 00:58:23 2010
@@ -134,6 +134,8 @@
                 raise InvalidCredsException(err_list[-1])
             if code.text == "SignatureDoesNotMatch":
                 raise InvalidCredsException(err_list[-1])
+            if code.text == "AuthFailure":
+                raise InvalidCredsException(err_list[-1])
         return "\n".join(err_list)
 
 class EC2Connection(ConnectionUserAndKey):



Mime
View raw message