Replace abc.abstractproperty with property and abc.abstractmethod
Replace abc.abstractproperty with property and abc.abstractmethod, as abc.abstractproperty has been deprecated since python3.3[1] [1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc Change-Id: Ifbc6f87a95315b22d20d6bbb950cb2cd7c6aa0ee
This commit is contained in:
parent
376d9493e2
commit
c9ddcf6239
|
@ -87,7 +87,8 @@ class DiskAdapter(object):
|
||||||
self.host_uuid = host_uuid
|
self.host_uuid = host_uuid
|
||||||
self.mp_uuid = mgmt.mgmt_uuid(self.adapter)
|
self.mp_uuid = mgmt.mgmt_uuid(self.adapter)
|
||||||
|
|
||||||
@abc.abstractproperty
|
@property
|
||||||
|
@abc.abstractmethod
|
||||||
def vios_uuids(self):
|
def vios_uuids(self):
|
||||||
"""List the UUIDs of the Virtual I/O Servers hosting the storage."""
|
"""List the UUIDs of the Virtual I/O Servers hosting the storage."""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
@ -225,12 +226,14 @@ class DiskAdapter(object):
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
@abc.abstractproperty
|
@property
|
||||||
|
@abc.abstractmethod
|
||||||
def capacity(self):
|
def capacity(self):
|
||||||
"""Capacity of the storage in gigabytes."""
|
"""Capacity of the storage in gigabytes."""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
@abc.abstractproperty
|
@property
|
||||||
|
@abc.abstractmethod
|
||||||
def capacity_used(self):
|
def capacity_used(self):
|
||||||
"""Capacity of the storage in gigabytes that is used."""
|
"""Capacity of the storage in gigabytes that is used."""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
Loading…
Reference in New Issue