libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r951575 - /incubator/libcloud/trunk/libcloud/drivers/gogrid.py
Date Fri, 04 Jun 2010 21:18:39 GMT
Author: pquerna
Date: Fri Jun  4 21:18:38 2010
New Revision: 951575

URL: http://svn.apache.org/viewvc?rev=951575&view=rev
Log:
Raise an exception if after timeout id wasn't allocated.

Submitted by: Roman Bogorodskiy <bogorodskiy gmail.com>

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

Modified: incubator/libcloud/trunk/libcloud/drivers/gogrid.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/gogrid.py?rev=951575&r1=951574&r2=951575&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/gogrid.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/gogrid.py Fri Jun  4 21:18:38 2010
@@ -267,4 +267,7 @@ class GoGridNodeDriver(NodeDriver):
             waittime += interval
             time.sleep(interval)
 
+        if id is None:
+            raise Exception("Wasn't able to wait for id allocation for the node %s" % str(node))
+
         return node



Mime
View raw message