summaryrefslogtreecommitdiff
path: root/boto/ec2/instance.py
diff options
context:
space:
mode:
authorMitch.Garnaat <Mitch.Garnaat@604d75c7-a419-0410-a38f-bde1a0bd1dbf>2008-12-10 11:43:15 +0000
committerMitch.Garnaat <Mitch.Garnaat@604d75c7-a419-0410-a38f-bde1a0bd1dbf>2008-12-10 11:43:15 +0000
commitc829df67b9b852a52956347aaaceab2e21538646 (patch)
tree1b91e63bc748f9b951e2f36c136b5c89aa2b8f67 /boto/ec2/instance.py
parentf091147c248b2c250e6ac002ea622cad3affdd44 (diff)
downloadboto-c829df67b9b852a52956347aaaceab2e21538646.tar.gz
Checking in changes to support regions in EC2.
Diffstat (limited to 'boto/ec2/instance.py')
-rw-r--r--boto/ec2/instance.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/boto/ec2/instance.py b/boto/ec2/instance.py
index 50a2a7a4..4a74e866 100644
--- a/boto/ec2/instance.py
+++ b/boto/ec2/instance.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2006, 2007 Mitch Garnaat http://garnaat.org/
+# Copyright (c) 2006-2008 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
@@ -23,14 +23,15 @@
Represents an EC2 Instance
"""
+from boto.ec2.ec2object import EC2Object
from boto.resultset import ResultSet
from boto.ec2.address import Address
import base64
-class Reservation:
+class Reservation(EC2Object):
def __init__(self, connection=None):
- self.connection = connection
+ EC2Object.__init__(self, connection)
self.id = None
self.owner_id = None
self.groups = []
@@ -61,10 +62,10 @@ class Reservation:
for instance in self.instances:
instance.stop()
-class Instance:
+class Instance(EC2Object):
def __init__(self, connection=None):
- self.connection = connection
+ EC2Object.__init__(self, connection)
self.id = None
self.dns_name = None
self.public_dns_name = None
@@ -85,9 +86,6 @@ class Instance:
def __repr__(self):
return 'Instance:%s' % self.id
- def startElement(self, name, attrs, connection):
- return None
-
def endElement(self, name, value, connection):
if name == 'instanceId':
self.id = value