The _update method in base Instance class overides dns_name_v6,so fixed it.

This commit is contained in:
Nachi Ueno 2011-01-05 09:52:45 -05:00
parent d02d923a4c
commit b14a8975de

View File

@ -25,9 +25,13 @@ class ReservationV6(Reservation):
class InstanceV6(Instance):
def __init__(self, connection=None):
Instance.__init__(self, connection)
self.public_dns_name_v6 = None
self.dns_name_v6 = None
def endElement(self, name, value, connection):
Instance.endElement(self, name, value, connection)
if name == 'dnsNameV6':
self.dns_name_v6 = value
def _update(self, updated):
self.__dict__.update(updated.__dict__)
self.dns_name_v6 = updated.dns_name_v6