We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d940c2c commit 8c3d9b8Copy full SHA for 8c3d9b8
1 file changed
juju/machine.py
@@ -215,7 +215,8 @@ async def ssh(
215
'-q',
216
destination
217
]
218
- cmd.extend(ssh_opts.split() if isinstance(ssh_opts, str) else ssh_opts)
+ if ssh_opts:
219
+ cmd.extend(ssh_opts.split() if isinstance(ssh_opts, str) else ssh_opts)
220
cmd.extend([command])
221
loop = self.model.loop
222
process = await asyncio.create_subprocess_exec(*cmd, loop=loop)
0 commit comments