Skip to content

Commit

Permalink
Minor improve for cluster health (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 authored Sep 26, 2024
2 parents 685cf0a + 4595c8a commit 9324595
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crmsh/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def check_local(self, nodes: typing.Iterable[str]) -> bool:
return False

def fix_local(self, nodes: typing.Iterable[str], ask: typing.Callable[[str], None]) -> None:
logger.warning('Passwordless ssh is not initialized. Use `crm cluster init ssh` and `crm cluster join ssh -c <init-node>` to set it up.')
logger.warning('Passwordless ssh is not initialized. Use `crm cluster init ssh` (on one node) and `crm cluster join ssh -c <init-node>` (on other nodes) to set it up.')
raise FixFailure

def fix_cluster(self, nodes: typing.Iterable[str], ask: typing.Callable[[str], None]) -> None:
Expand Down
2 changes: 1 addition & 1 deletion crmsh/ui_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def do_geo_init_arbitrator(self, context, *args):
bootstrap.bootstrap_arbitrator(geo_context)
return True

@command.completers_repeating(compl.nodes)
@command.completers(compl.choice(['hawk2']))
def do_health(self, context, *args):
'''
Extensive health check.
Expand Down

0 comments on commit 9324595

Please sign in to comment.