DataSourceSmartOS: remove unnecessary availability_zone attribute
The use of availability-zone or availability_zone is provided by the base classes's behavior.
This commit is contained in:
parent
3a25f5468f
commit
87c384bad6
|
@ -176,13 +176,6 @@ class DataSourceSmartOS(sources.DataSource):
|
|||
seed_timeout=self.seed_timeout, default=default,
|
||||
b64=b64)
|
||||
|
||||
@property
|
||||
def availability_zone(self):
|
||||
try:
|
||||
return self.metadata['availability-zone']
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
|
||||
def get_serial(seed_device, seed_timeout):
|
||||
"""This is replaced in unit testing, allowing us to replace
|
||||
|
|
Loading…
Reference in New Issue