Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2274)

Unified Diff: boto/ec2/address.py

Issue 8386013: Merging in latest boto. (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Redoing vendor drop by deleting and then merging. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « boto/ec2/__init__.py ('k') | boto/ec2/autoscale/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: boto/ec2/address.py
diff --git a/boto/ec2/address.py b/boto/ec2/address.py
index 60ed40675f11e9b8112fcebc5692241da918996a..770a90429a0e7f86365470cdea67d2e949940796 100644
--- a/boto/ec2/address.py
+++ b/boto/ec2/address.py
@@ -14,7 +14,7 @@
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
-# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
@@ -26,12 +26,15 @@ Represents an EC2 Elastic IP Address
from boto.ec2.ec2object import EC2Object
class Address(EC2Object):
-
+
def __init__(self, connection=None, public_ip=None, instance_id=None):
EC2Object.__init__(self, connection)
self.connection = connection
self.public_ip = public_ip
self.instance_id = instance_id
+ self.domain = None
+ self.allocation_id = None
+ self.association_id = None
def __repr__(self):
return 'Address:%s' % self.public_ip
@@ -41,6 +44,12 @@ class Address(EC2Object):
self.public_ip = value
elif name == 'instanceId':
self.instance_id = value
+ elif name == 'domain':
+ self.domain = value
+ elif name == 'allocationId':
+ self.allocation_id = value
+ elif name == 'associationId':
+ self.association_id = value
else:
setattr(self, name, value)
@@ -55,4 +64,4 @@ class Address(EC2Object):
def disassociate(self):
return self.connection.disassociate_address(self.public_ip)
-
+
« no previous file with comments | « boto/ec2/__init__.py ('k') | boto/ec2/autoscale/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698