use context stuff for fetching the ssh keys
This commit is contained in:
parent
8fe1bffea1
commit
95a36eff56
|
@ -76,9 +76,7 @@ class SSHController(BaseController):
|
|||
|
||||
async def _fetch_ssh_keys(self, user_spec):
|
||||
ssh_import_id = "{ssh_import_id}:{import_username}".format(**user_spec)
|
||||
log.debug(
|
||||
"User input: %s, fetching ssh keys for %s",
|
||||
user_spec, ssh_import_id)
|
||||
with self.context.child("ssh_import_id", ssh_import_id):
|
||||
try:
|
||||
cp = await self.run_cmd_checked(
|
||||
['ssh-import-id', '-o-', ssh_import_id],
|
||||
|
|
Loading…
Reference in New Issue