Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Oct 12, 2023
1 parent 66c3d76 commit 99cd0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crmsh/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ def join_ssh_impl(local_user, seed_host, seed_user, ssh_public_keys: typing.List

def swap_public_ssh_key_for_secondary_user(shell: sh.ClusterShell, host: str, user: str):
key_file_manager = ssh_key.KeyFileManager(shell)
local_key = ssh_key.KeyFile(key_file_manager.list_public_key_for_user(host, user)[0])
local_key = ssh_key.KeyFile(key_file_manager.list_public_key_for_user(None, user)[0])
remote_key = key_file_manager.ensure_key_pair_exists_for_user(host, user)[0]
authorized_key_manager = ssh_key.AuthorizedKeyManager(shell)
authorized_key_manager.add(None, user, remote_key)
Expand Down

0 comments on commit 99cd0b9

Please sign in to comment.