You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/10/09 18:28:19 UTC
svn commit: r1180640 - /libcloud/trunk/libcloud/compute/base.py
Author: tomaz
Date: Sun Oct 9 16:28:19 2011
New Revision: 1180640
URL: http://svn.apache.org/viewvc?rev=1180640&view=rev
Log:
Add size and image attributes to the Node object.
Modified:
libcloud/trunk/libcloud/compute/base.py
Modified: libcloud/trunk/libcloud/compute/base.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/base.py?rev=1180640&r1=1180639&r2=1180640&view=diff
==============================================================================
--- libcloud/trunk/libcloud/compute/base.py (original)
+++ libcloud/trunk/libcloud/compute/base.py Sun Oct 9 16:28:19 2011
@@ -110,7 +110,7 @@ class Node(object):
"""
def __init__(self, id, name, state, public_ip, private_ip,
- driver, extra=None):
+ driver, size=None, image=None, extra=None):
self.id = str(id) if id else None
self.name = name
self.state = state
@@ -118,6 +118,8 @@ class Node(object):
self.private_ip = private_ip
self.driver = driver
self.uuid = self.get_uuid()
+ self.size = size
+ self.image = image
self.extra = extra or {}
def get_uuid(self):