diff options
Diffstat (limited to 'lib/leap_cli/commands/node.rb')
-rw-r--r-- | lib/leap_cli/commands/node.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index fdd1fa8..b554c1f 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -64,10 +64,9 @@ module LeapCli; module Commands ssh_connect_options = connect_options(options).merge({:bootstrap => true, :echo => options[:echo]}) ssh_connect(node, ssh_connect_options) do |ssh| if node.vagrant? - ssh.install_authorized_keys2 - else - ssh.install_authorized_keys + ssh.install_insecure_vagrant_key end + ssh.install_authorized_keys ssh.install_prerequisites ssh.leap.capture(facter_cmd) do |response| if response[:exitcode] == 0 |