diff options
| author | 2026-04-24 01:36:01 +0000 | |
|---|---|---|
| committer | 2026-04-24 01:36:01 +0000 | |
| commit | 331f2e203bfa44e682bcc9ac1c36909f42f37268 (patch) | |
| tree | 23864b45ed53ecfd67fb7936a5b377c4811c687b /autopeer_shell.py | |
| parent | dynamic smokeping config... but only for master node so far (diff) | |
repr command being run for sanity
Diffstat (limited to 'autopeer_shell.py')
| -rwxr-xr-x | autopeer_shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autopeer_shell.py b/autopeer_shell.py index 4fe30b4..ea54ec5 100755 --- a/autopeer_shell.py +++ b/autopeer_shell.py @@ -243,7 +243,7 @@ if __name__ == '__main__': shell = AutopeerShell() command = os.getenv('SSH_ORIGINAL_COMMAND', '') if len(command): - sp = subprocess.run(['socat', 'stdio', NOTIFY_TO], input=f"[autopeer {socket.gethostname()}] {USER} ran {command} via {os.getenv('SSH_CONNECTION')}", text=True) + sp = subprocess.run(['socat', 'stdio', NOTIFY_TO], input=f"[autopeer {socket.gethostname()}] {USER} ran {command!r} via {os.getenv('SSH_CONNECTION')}", text=True) shell.onecmd(command) else: sp = subprocess.run(['socat', 'stdio', NOTIFY_TO], input=f"[autopeer {socket.gethostname()}] {USER} logged in via {os.getenv('SSH_CONNECTION')}", text=True) |
