We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f163603 commit d7c7f2aCopy full SHA for d7c7f2a
2 files changed
juju/machine.py
@@ -154,9 +154,9 @@ async def ssh(
154
"""
155
if proxy:
156
raise NotImplementedError('proxy option is not implemented')
157
- address = self.dns_name
158
if wait_for_active:
159
await block_until(lambda: self.addresses, timeout=timeout)
+ address = self.dns_name
160
destination = "{}@{}".format(user, address)
161
_, id_path = juju_ssh_key_paths()
162
cmd = [
tests/integration/test_machine.py
@@ -71,7 +71,6 @@ async def test_scp(event_loop):
71
async def test_machine_ssh():
72
async with base.CleanModel() as model:
73
machine: Machine = await model.add_machine()
74
- await machine.wait()
75
out = await machine.ssh("echo hello world!")
76
77
assert out == "hello world!\n"
0 commit comments