mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
fix: populate ssh_key_file in the config when adding machine to cluster
This commit is contained in:
+2
-1
@@ -253,7 +253,8 @@ func (cli *CLI) AddMachine(ctx context.Context, remoteMachine RemoteMachine, clu
|
|||||||
|
|
||||||
// Save the machine's SSH connection details in the cluster config.
|
// Save the machine's SSH connection details in the cluster config.
|
||||||
connCfg := config.MachineConnection{
|
connCfg := config.MachineConnection{
|
||||||
SSH: config.NewSSHDestination(remoteMachine.User, remoteMachine.Host, remoteMachine.Port),
|
SSH: config.NewSSHDestination(remoteMachine.User, remoteMachine.Host, remoteMachine.Port),
|
||||||
|
SSHKeyFile: remoteMachine.KeyPath,
|
||||||
}
|
}
|
||||||
if clusterName == "" {
|
if clusterName == "" {
|
||||||
clusterName = cli.config.CurrentCluster
|
clusterName = cli.config.CurrentCluster
|
||||||
|
|||||||
Reference in New Issue
Block a user