Skip to content

Commit

Permalink
code
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Sep 29, 2024
1 parent c6f8273 commit e7ee31d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crmsh/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2471,6 +2471,8 @@ def node_reachable_check(node, ping_count=1, port=22, timeout=3):
"""
Check if node is reachable by using ping and socket to ssh port
"""
if options.regression_tests:
return True
rc, _, _ = ShellUtils().get_stdout_stderr(f"ping -n -c {ping_count} -W {timeout} {node}")
if rc == 0:
return True
Expand Down

0 comments on commit e7ee31d

Please sign in to comment.