Revert "Temporary compatibility layer for numhosts property support."
This reverts commit 557ed1918c.
Fixes in fuel-qa side is on review
Change-Id: Iec924014febb92976ca13558605a449336a74acc
This commit is contained in:
@@ -39,21 +39,6 @@ from devops.models.network import L2NetworkDevice
|
||||
from devops.models.node import Node
|
||||
|
||||
|
||||
def _numhosts(self):
|
||||
msg = (
|
||||
'numhosts property is temporary compatibility spike '
|
||||
'and will be dropped soon! '
|
||||
'Replace by len(IPNetwork()) if required.'
|
||||
)
|
||||
logger.warning(msg)
|
||||
warn(msg, DeprecationWarning)
|
||||
return len(self)
|
||||
|
||||
IPNetwork.numhosts = property(
|
||||
fget=_numhosts,
|
||||
doc="""Temporary compatibility layer for numhosts property support.""")
|
||||
|
||||
|
||||
class Environment(BaseModel):
|
||||
class Meta(object):
|
||||
db_table = 'devops_environment'
|
||||
|
||||
Reference in New Issue
Block a user