From 24f08fbbbacfb7d2bd1e020fcf2ea14900bdcc56 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Mon, 20 Dec 2021 13:58:08 -0500 Subject: [PATCH] ensure ssh_args is passed as a list --- mitogen/ssh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mitogen/ssh.py b/mitogen/ssh.py index 656dc72c..6e6e04f9 100644 --- a/mitogen/ssh.py +++ b/mitogen/ssh.py @@ -213,6 +213,8 @@ class Options(mitogen.parent.Options): if ssh_path: self.ssh_path = ssh_path if ssh_args: + if not isinstance(ssh_args, list): + raise ValueError('ssh_args expected to be a list') self.ssh_args = ssh_args if ssh_debug_level: self.ssh_debug_level = ssh_debug_level