Correct login name deduction in SshServer

Currently SshServer ("server ssh" command) raises an AttributeError if
no explicit login is provided because it uses an attribute which no more
exists.

Change-Id: I86f68230037d51efb41aca62e07e058733ecd67a
Closes-Bug: #1624085
This commit is contained in:
Cedric Brandily 2016-09-15 21:57:17 +02:00
parent 276675f352
commit e6b09eef0c
1 changed files with 1 additions and 1 deletions

View File

@ -1677,7 +1677,7 @@ class SshServer(command.Command):
if parsed_args.login:
login = parsed_args.login
else:
login = self.app.client_manager._username
login = self.app.client_manager.auth_ref.username
if parsed_args.verbose:
cmd += " -v"