diff --git a/mtik_cert_pusher/connector.py b/mtik_cert_pusher/connector.py index 1c98b60..07ccbe8 100644 --- a/mtik_cert_pusher/connector.py +++ b/mtik_cert_pusher/connector.py @@ -65,11 +65,11 @@ class SSHConnector(Connector): def _ssh_option_args(self) -> list: result = [] if self.ssh_config_path: - result.extend(["-F", self.ssh_config_path]) + result.extend(["-F", str(self.ssh_config_path)]) if self.ssh_user: - result.append("-oUser={self.ssh_user}") + result.append(f"-oUser={self.ssh_user}") if self.ssh_port: - result.append("-oPort={self.ssh_port:d}") + result.append(f"-oPort={self.ssh_port:d}") for k, v in self.extra_ssh_options.items(): assert "=" not in k assert k