Skip to content

Commit 8c3d9b8

Browse files
committed
Fix machine SSH opts
1 parent d940c2c commit 8c3d9b8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

juju/machine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ async def ssh(
215215
'-q',
216216
destination
217217
]
218-
cmd.extend(ssh_opts.split() if isinstance(ssh_opts, str) else ssh_opts)
218+
if ssh_opts:
219+
cmd.extend(ssh_opts.split() if isinstance(ssh_opts, str) else ssh_opts)
219220
cmd.extend([command])
220221
loop = self.model.loop
221222
process = await asyncio.create_subprocess_exec(*cmd, loop=loop)

0 commit comments

Comments
 (0)