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:
Alexey Stepanov
2016-08-24 06:59:54 +00:00
parent 96d7de4d69
commit 48fcf848a5

View File

@@ -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'