Exemple #1
0
 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,
     )
Exemple #2
0
 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,
     )
Exemple #3
0
 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,
     )