diff options
| author | Scott Gasch <[email protected]> | 2022-06-02 17:33:29 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-06-02 17:33:29 -0700 |
| commit | cdced3d08fad56ae3f4311d7f21d70e393942a0b (patch) | |
| tree | a06d1a71aa60a8e1fb73ee7c52254e93644a66b7 /executors.py | |
| parent | 044cc0cba99b861f4d7c02ee479888138ab83500 (diff) | |
Rename a method in exec_utils.
Diffstat (limited to 'executors.py')
| -rw-r--r-- | executors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/executors.py b/executors.py index a9d25da..4269371 100644 --- a/executors.py +++ b/executors.py @@ -36,7 +36,7 @@ import histogram as hist import string_utils from ansi import bg, fg, reset, underline from decorator_utils import singleton -from exec_utils import cmd_in_background, cmd_with_timeout, run_silently +from exec_utils import cmd_exitcode, cmd_in_background, run_silently from thread_utils import background_thread logger = logging.getLogger(__name__) @@ -1380,7 +1380,7 @@ class DefaultExecutors(object): def _ping(host) -> bool: logger.debug('RUN> ping -c 1 %s', host) try: - x = cmd_with_timeout(f'ping -c 1 {host} >/dev/null 2>/dev/null', timeout_seconds=1.0) + x = cmd_exitcode(f'ping -c 1 {host} >/dev/null 2>/dev/null', timeout_seconds=1.0) return x == 0 except Exception: return False |
