def from_hostname(cls, hostname, status=NEEDS_UPGRADE, comments=None): has_dev = host_exists('dev-' + hostname + '.ocf.berkeley.edu') return cls( host=Host.from_ldap(hostname), status=status, has_dev=has_dev, comments=comments, )
def from_hostname(cls: Any, hostname: str, status: int = NEEDS_UPGRADE, comments: Optional[str] = None) -> Any: has_dev = host_exists('dev-' + hostname + '.ocf.berkeley.edu') return cls( host=Host.from_ldap(hostname), status=status, has_dev=has_dev, comments=comments, )