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 2011/02/07 23:20:44 UTC

svn commit: r1068183 - /incubator/libcloud/trunk/libcloud/drivers/rackspace.py

Author: pquerna
Date: Mon Feb  7 22:20:44 2011
New Revision: 1068183

URL: http://svn.apache.org/viewvc?rev=1068183&view=rev
Log:
Expose the URI of a rackspace node to the node metadata

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

Modified: incubator/libcloud/trunk/libcloud/drivers/rackspace.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/rackspace.py?rev=1068183&r1=1068182&r2=1068183&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/rackspace.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/rackspace.py Mon Feb  7 22:20:44 2011
@@ -480,6 +480,7 @@ class RackspaceNodeDriver(NodeDriver):
                     'hostId': el.get('hostId'),
                     'imageId': el.get('imageId'),
                     'flavorId': el.get('flavorId'),
+                    'uri': "https://%s%s/servers/%s" % (self.connection.host, self.connection.path, el.get('id')),
                     'metadata': metadata,
                  })
         return n