Skip to content

Commit a078ee3

Browse files
committed
Fix: healthcheck: Add crmsh.constants.SSH_OPTION when doing ssh in check_local
1 parent c270ea8 commit a078ee3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crmsh/healthcheck.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sys
77
import typing
88

9+
import crmsh.constants
910
import crmsh.parallax
1011
import crmsh.utils
1112

@@ -131,7 +132,7 @@ def check_local(self, nodes: typing.Iterable[str]) -> bool:
131132
try:
132133
for node in nodes:
133134
subprocess.check_call(
134-
['sudo', 'su', '-', 'hacluster', '-c', 'ssh hacluster@{} true'.format(node)],
135+
['sudo', 'su', '-', 'hacluster', '-c', 'ssh {} hacluster@{} true'.format(crmsh.constants.SSH_OPTION, node)],
135136
stdin=subprocess.DEVNULL,
136137
stdout=subprocess.DEVNULL,
137138
stderr=subprocess.DEVNULL,

0 commit comments

Comments
 (0)