You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/05/20 01:30:32 UTC

svn commit: r946480 - /incubator/libcloud/trunk/libcloud/drivers/gogrid.py

Author: pquerna
Date: Wed May 19 23:30:32 2010
New Revision: 946480

URL: http://svn.apache.org/viewvc?rev=946480&view=rev
Log:
raise exception if an ID is missing from the gogrid response

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=946480&r1=946479&r2=946480&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/gogrid.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/gogrid.py Wed May 19 23:30:32 2010
@@ -150,6 +150,8 @@ class GoGridNodeDriver(NodeDriver):
         state = self._get_state(element)
         ip = self._get_ip(element)
         id = self._get_id(element)
+        if id == None:
+          raise Exception("ID is missing from Node response: "+ element)
         n = GoGridNode(id=id,
                  name=element['name'],
                  state=state,