Skip to content

Commit

Permalink
futen: delete duplicate method
Browse files Browse the repository at this point in the history
  • Loading branch information
bennn committed Jul 21, 2023
1 parent 4ebadfa commit 4f4a0a2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Benchmark/futen/shallow/paramiko_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,14 @@ def _expand_variables(self, config: Dict[str, str], hostname: str) -> Dict[str,
return config

def _get_hosts(self, host: str) -> List[str]:
try:
return shlex.split(host)
except ValueError:
raise Exception("Unparsable host %s" % host)

def _get_hosts(self, host: str) -> List(str):
"""
Return a list of host_names from host value.
"""
try:
return shlex.split(host)
except ValueError:
raise Exception("Unparsable host %s" % host)

class LazyFqdn(object):
def __init__(self, config: Dict[str, str], host: str) -> None:
self.fqdn = None
Expand Down Expand Up @@ -213,4 +208,4 @@ def __str__(self) -> str:
if fqdn is None:
fqdn = socket.getfqdn()
self.fqdn = fqdn
return self.fqdn
return self.fqdn

0 comments on commit 4f4a0a2

Please sign in to comment.