Skip to content

Commit a2c2b3e

Browse files
committed
fixing the ssh test
1 parent e34350a commit a2c2b3e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

juju/machine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async def _scp(self, source, destination, scp_opts):
140140
raise JujuError("command failed: %s" % cmd)
141141

142142
async def ssh(
143-
self, command, user=None, proxy=False, ssh_opts=None):
143+
self, command, user='ubuntu', proxy=False, ssh_opts=None):
144144
"""Execute a command over SSH on this machine.
145145
146146
:param str command: Command to execute

juju/unit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def set_meter_status(self):
223223
raise NotImplementedError()
224224

225225
async def ssh(
226-
self, command, user=None, proxy=False, ssh_opts=None):
226+
self, command, user='ubuntu', proxy=False, ssh_opts=None):
227227
"""Execute a command over SSH on this unit.
228228
229229
:param str command: Command to execute

0 commit comments

Comments
 (0)